"core" folder missing on NPM registry (not a Lerna issue)
See original GitHub issueDISCLAIMER: this is not a bug from Lerna but an issue arising from one of its dependency => npm-packlist
Expected Behavior
- A few days ago, publishing a project containing any folder named
core
would lead to all non-blacklisted files to be included in the tarball sent onto NPM registry
Current Behavior
- Since release of npm-packlist v1.3.0 which included the changes introduced by the pull-request n°8, any folder named
core
has suddenly become blacklisted by default without notice - (This is where npm-packlist is declared: https://github.com/lerna/lerna/blame/master/utils/pack-directory/package.json#L33)
Possible Solution
- The current workaround is to set either
!core
or!/path/to/core
in.npmignore
at the root of your Lerna package to explicitly whitelist the now blacklisted folder back. - Currently, there is no option to toggle this behavior on npm-packlist so I have opened the following ticket: https://github.com/npm/npm-packlist/issues/24
Steps to Reproduce (for bugs)
- Have a project containing a folder named
core
anywhere in the tree with a file “path/to/core/index.js” - Using Lerna 3.0,
path/to/core
and any of its content will be included in the tarball on publish - Using the latest Lerna revision,
path/to/core
and any of its content will be missing from the tarball on publish
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:5 (3 by maintainers)
Top Results From Across the Web
ENOENT: no such file or directory when running npm install ...
First delete the package-lock.json and then try npm install.
Read more >npm packages in the Package Registry - GitLab Docs
Learn how to build an npm or yarn package. Watch a video demo of how to publish npm packages to the GitLab Package...
Read more >How to troubleshoot NPM problems - JFrog
Common NPM queries and a reference to correct API calls. ... How to troubleshoot NPM problems ... 404: Resource not found, check repository...
Read more >eslint-plugin-import - npm
If you are using yarn PnP as your package manager, add the .yarn folder and all your installed dependencies will be considered as...
Read more >Things I wish I had known when I started JavaScript monorepo ...
The reason is simple: all packages of the monorepo will be recursively installed by running npm install from monorepo root. The recursive ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yikes, that’s a nasty surprise. Thanks for the heads up and opening the issue upstream!
Update to lerna v3.13.1 and you will no longer encounter this problem when running
lerna publish