From a5d298de3b38351c1c1cfc59d3db8041c10505de Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford <7019101+cwillisf@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:57:17 -0700 Subject: [PATCH] fix: work around semantic-release/npm plugin prepack issue 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 https://github.com/semantic-release/npm/issues/535 --- release.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.config.js b/release.config.js index 3915249..89a55e9 100644 --- a/release.config.js +++ b/release.config.js @@ -12,7 +12,7 @@ module.exports = { [ '@semantic-release/npm', { - tarballDir: 'pack' + // Do not set 'tarballDir' without considering this issue: https://github.com/semantic-release/npm/issues/535 } ], [