Wanted files ignored when packing

What I Wanted to Do

Pack a module with all files

What Happened Instead

It packed everything except files under cli/tasks/core/*

Reproduction Steps

npm pack

Details

It works well under npm 6.7.0.

Also works well if core directory is renamed to anything else

.npmignore

.editorconfig
.eslintrc.yaml
.gitignore
bitbucket-pipelines.yml
test

.gitignore

.idea
node_modules
package-lock.json

Platform Info

$ npm --versions
{ npm: '6.8.0',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '34.0',
  http_parser: '2.8.0',
  icu: '63.1',
  llhttp: '1.1.1',
  modules: '67',
  napi: '4',
  nghttp2: '1.34.0',
  node: '11.10.0',
  openssl: '1.1.1a',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.26.0',
  v8: '7.0.276.38-node.17',
  zlib: '1.2.11' }
$ node -p process.platform
darwin

This is fixed in npm@6.9.0 and you can test it in the pre-release: Release: npm@6.9.0-next.0

2 Likes

Thanks works well. Sorry for the duplicate I didn’t find the original bug report.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.