From 0352603eb3207032c864bdba4ec2f726d8dbe6c0 Mon Sep 17 00:00:00 2001 From: Anthony Alaribe Date: Sun, 4 Oct 2026 16:00:56 +0200 Subject: [PATCH] Refresh npm metadata during publish verification --- scripts/verify-production-install.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/verify-production-install.mjs b/scripts/verify-production-install.mjs index 792d6c2..5c7e664 100644 --- a/scripts/verify-production-install.mjs +++ b/scripts/verify-production-install.mjs @@ -60,7 +60,7 @@ for (const { dir, importable } of packages) { execSync('npm init -y', { cwd: work, stdio: 'ignore' }) // --omit=dev is the whole point: devDependencies must not be what makes it importable. withRetry(() => - execSync(`npm install --omit=dev --no-audit --no-fund ${name}@${version}`, { + execSync(`npm install --omit=dev --no-audit --no-fund --prefer-online ${name}@${version}`, { cwd: work, stdio: 'pipe', })