meta-npmignore
v0.2.1
Published
A zero dependency cli tool to generate .npmignore file dynamically, based on local and global gitignore config.
Downloads
5
Readme
meta-npmignore
A zero dependency cli tool to generate .npmignore file dynamically, based on local and global gitignore config.
Motivation
To avoid accidentally publishing {unnecessary,credential} files, such as yarn.error
, .envrc
or others,
we have to manage DUPLICATE declarations, both of .gitignore and .npmignore.
meta-npmignore
solves DUPLICATE declarations.
Usage
Init
Rename .npmignore
into .npmignorerc
and add .npmignore
into .gitignore
$ meta-npmignore --init
Run
Adding meta-npmignore
into prepare
npm scripts is recommended.
$ meta-npmignore
LICENCE
MIT