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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    2
  • 0.2.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i meta-npmignore

Weekly Downloads

4

Version

0.2.1

License

MIT

Unpacked Size

2.43 kB

Total Files

4

Last publish

Collaborators

  • euxn23