npmignore-aggregate
A cli tool to generate .npmignore
aggregating {global,local} .gitignore
and npmignore
.
To avoid accidentally publishing {unnecessary,credential} files, such as yarn.error
, .envrc
or others, that declared in .gitignore
but not in .npmignore
Usage
.npmignore
and adding .npmignore
to .gitignore
)
Init (shorthand of deleting $ npmignore-aggregate --init
Run
$ npmignore-aggregate
LICENCE
MIT