fstream-npm icon indicating copy to clipboard operation
fstream-npm copied to clipboard

Always include npm shrinkwrap data in pack

Open mathbruyen opened this issue 11 years ago • 1 comments
trafficstars

Packages which have a files property in their package.json file and want to publish a dependency-frozen package with npm-shrinkwrap need to explicitly state that npm-shrinkwrap.json file is to be included in the tarball.

NPM metadata is to be automatically included in the tarball, like package.json is.

Packages used to require an npm-specific file in their declaration:

{
  "name": "foobar",
  "version": "0.0.1",
  "files": ["build.js", "npm-shrinkwrap.json"],
}

Now just need to specify their own file:

{
  "name": "foobar",
  "version": "0.0.1",
  "files": ["build.js"],
}

mathbruyen avatar Nov 11 '14 09:11 mathbruyen

This will need a test before we land it. fstream releated tests are hard to work with, so I'll write one at some point, but that work isn't scheduled yet. (If you were to add one, we could land this immediately.)

iarna avatar Oct 30 '15 22:10 iarna