meta-npmignore

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i meta-npmignore

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

2.43 kB

Total Files

4

Last publish

Collaborators

  • euxn23