question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"core" folder missing on NPM registry (not a Lerna issue)

See original GitHub issue

DISCLAIMER: 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

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)

  1. Have a project containing a folder named core anywhere in the tree with a file “path/to/core/index.js”
  2. Using Lerna 3.0, path/to/core and any of its content will be included in the tarball on publish
  3. Using the latest Lerna revision, path/to/core and any of its content will be missing from the tarball on publish

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
evocateurcommented, Feb 13, 2019

Yikes, that’s a nasty surprise. Thanks for the heads up and opening the issue upstream!

0reactions
evocateurcommented, Mar 14, 2019

Update to lerna v3.13.1 and you will no longer encounter this problem when running lerna publish

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found