From 4c25129ad5439a6b53c5eaa087cc8b83099f34c4 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sat, 22 Aug 2026 17:08:31 +0800 Subject: [PATCH] test(package): allow package smoke test during npm publish dry-run --- scripts/test-package.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/test-package.mjs b/scripts/test-package.mjs index 4b3a058..b4790ce 100644 --- a/scripts/test-package.mjs +++ b/scripts/test-package.mjs @@ -44,6 +44,9 @@ try { const packOutput = run("npm", [ "pack", "--json", + // The outer `npm publish --dry-run` propagates npm_config_dry_run into + // this script; force a real tarball for the local smoke test. + "--dry-run=false", "--pack-destination", temporaryDirectory, ]); @@ -70,6 +73,8 @@ try { "--omit=dev", "--no-audit", "--no-fund", + // Same npm_config_dry_run propagation; force a real installation. + "--dry-run=false", tarball, ]);