ypkgfiles

1.6.0 • Public • Published

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

/ypkgfiles/

    Package Sidebar

    Install

    npm i ypkgfiles

    Weekly Downloads

    14,659

    Version

    1.6.0

    License

    MIT

    Unpacked Size

    8.61 kB

    Total Files

    7

    Last publish

    Collaborators

    • popomore