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

fix: work around semantic-release/npm plugin prepack issue #186

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

cwillisf
Copy link

Proposed Changes

Remove the tarballDir setting for the npm plugin

Reason for Changes

There's an issue where the npm plugin for semantic-release effectively runs npm prepack twice when tarballDir is set. Worse, if the tarballDir is within the package directory and not excluded (by .npmignore, for example) then the tarball from the first prepack will end up inside the tarball for the second prepack, effectively doubling the package size.

See semantic-release/npm#535

There's an issue where the `npm` plugin for `semantic-release`
effectively runs `npm prepack` twice when `tarballDir` is set. Worse, if
the `tarballDir` is within the package directory and not excluded (by
`.npmignore`, for example) then the tarball from the first `prepack`
will end up inside the tarball for the second `prepack`, effectively
doubling the package size.

See semantic-release/npm#535
Copy link

@colbygk colbygk left a comment

Choose a reason for hiding this comment

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

LGTM

@cwillisf cwillisf merged commit a4fcd87 into main Sep 10, 2024
1 check passed
@cwillisf cwillisf deleted the work-around-double-prepack branch September 10, 2024 20:31
@cwillisf cwillisf mentioned this pull request Sep 10, 2024
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.

2 participants