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.

Missing dist directory in some NPM packages

See original GitHub issue

Following latest release (thank you!) I tried to update my packages but it seems some NPM packages do not contain the dist directory with compiled JS:

Also, some files should certainly not be part of the published packages, such as logs, coverage, estimates.cache.json, etc. Let me know if I can help you, I am happy to participate if needed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ccashercommented, Jun 11, 2021

Hey @vhiairrassary,

Thanks for digging into this. I believe you might be correct on the fact that having them all included in the next changeset PR action will trigger the fix. I had to manually publish them initially on npm and we havent bumped since so that would hopefully explain the problem of no dist as I may not have ran a build before the publish.

We will plan to do another release on Monday and make sure to have each new package bumped to trigger the correct build/publish.

Thanks, Cam

0reactions
ccashercommented, Jun 14, 2021

I believe this is fixed with the new release! If you want to confirm I can wait to close out this issue.

Thanks, Victor!

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install doesnt create dist folder - Stack Overflow
npm install command installs packages that your project will be using as dependencies. It will create the node_modules directory in your current directory...
Read more >
npm package broken, missing dist folder · Issue #3 - GitHub
It looks like package.json refers to "main": "dist/index.js" (permalink), but the NPM release is missing the dist folder.
Read more >
package.json - npm Docs
The CommonJS Packages spec details a few ways that you can indicate the structure of your package using a directories object. If you...
Read more >
npm-prepare-dist
Start using npm-prepare-dist in your project by running `npm i ... Main package.json file will be copied into your dist folder ...
Read more >
Creating a package.json file - npm Docs
json file with values that you supply, use the npm init command. On the command line, navigate to the root directory of your...
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