node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

ypkgfiles

ypkgfiles

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Yet another pkgfiles that generate pkg.files automatically

Why

Recommend pkg.files instead of .npmignore to choose which file should be included when npm publish. However, we will miss some files or directories when published, and should fix with another publishing.

Using ypkgfiles, it will generate pkg.files automatically with some configuration.

Usage

$ npm install ypkgfiles
$ pkgfiles

Then files will be generated in package.json. ypkgfiles will lookup files from the main export.

If you want to publish some files that is not based on main export, such as mz

require('mz/fs')

You can use --entry fs.js options to add to files automatically. If have more files, you can use glob --entry *.js.

License

MIT