Skip to content

Ignore source map files while publishing#783

Merged
sindresorhus merged 1 commit into
xojs:mainfrom
LitoMore:ignore-source-maps
Apr 4, 2025
Merged

Ignore source map files while publishing#783
sindresorhus merged 1 commit into
xojs:mainfrom
LitoMore:ignore-source-maps

Conversation

@LitoMore
Copy link
Copy Markdown
Contributor

@LitoMore LitoMore commented Apr 4, 2025

Please correct me if I'm wrong.

It looks like we only used those source map files for testing purposes. Maybe we could ignore them while publishing to npm.

@sindresorhus
Copy link
Copy Markdown
Member

I agree, I don't think we should publish source maps files. The most common usage is the CLI, and source maps add a lot of weight to the package size.

@sindresorhus sindresorhus requested a review from spence-s April 4, 2025 08:13
Copy link
Copy Markdown
Contributor

@spence-s spence-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, agreed this is good. I like that this leaves them in the build as well and filters them at publish time, so test errors can be reported using source maps still.

@sindresorhus sindresorhus merged commit 835b12a into xojs:main Apr 4, 2025
3 checks passed
@LitoMore LitoMore deleted the ignore-source-maps branch April 4, 2025 16:38
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

Successfully merging this pull request may close these issues.

3 participants