Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please release source code to npm if you release source map files #337

Closed
tylerlong opened this issue Nov 27, 2023 · 1 comment
Closed

Comments

@tylerlong
Copy link

tylerlong commented Nov 27, 2023

For now, only the dist folder is released. There is source map file released.

For example: util.d.ts:

{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":""}

It causes a error/warning in my Parcel built project:

[Error: ENOENT: no such file or directory, open '/Users/tyler.liu/src/ts/ttpt-electron-demo/node_modules/src/util.ts']

This error only appears the first time I run the parcel command. It doesn't break anything.
But still, I hope we could address this issue.

@tylerlong tylerlong changed the title Please release source code to npm if you release a source map file Please release source code to npm if you release source map files Nov 27, 2023
@d-fischer
Copy link
Member

I fixed this (by removing the source maps from the package publishing), but as you're saying, it's just a warning and doesn't break anything. I will release the fix with the next due version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants