@jych/disallow

0.1.2 • Public • Published

@jych/disallow

A CLI command to help ensure you don't include disallowed packages in your project.

By providing a list of packages that you don't allow to be used in your project, you can ensure they are not added to either dependencies or devDependencies. If any disallowed packages are found, they will be logged and the command will exit.

usage

Run disallow to check your project for disallowed packages.

From your shell:

disallow --package ./package.json --list ./disallow-list.json

From your package.json scripts:

"scripts": {
  "lint": "disallow --package ./package.json --list ./disallow-list.json"
}

Run disallow --help for a full help page.

disallow list

Disallowed packages are provided in a JSON file, with the format:

{
  "disallow": [ "packageA", "packageB" ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jych/disallow

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

6.6 kB

Total Files

7

Last publish

Collaborators

  • jych