feat: unify package artifact validation (#10197)

* feat: unify package artifact validation

* fix: restrict local artifact output paths

* fix: clarify package artifact module names

* feat: support pnpm package artifact consumers

* fix: preserve local release package installs

Keep npm and Bun consumer installs as runnable release artifacts while retaining isolated validation for other packages. Simplify smoke fixtures and avoid redundant release work.
This commit is contained in:
Christian Klotz 2026-10-06 13:30:02 +02:00 • committed by GitHub
parent 428a12bc77
commit 23cf2b948d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 1172 additions and 512 deletions

10
scripts/npm-command.mjs Normal file
View file

@ -0,0 +1,10 @@
import { execFileSync } from "node:child_process";
import { existsSync } from "node:fs";
export function execNpmSync(args, options = {}) {
if (process.platform !== "win32") return execFileSync("npm", args, options);
const npmCli = process.env.npm_execpath;
if (!npmCli) throw new Error("Cannot locate npm on Windows. Run this command through its npm script.");
if (!existsSync(npmCli)) throw new Error(`Cannot locate the npm CLI: ${npmCli}`);
return execFileSync(process.execPath, [npmCli, ...args], options);
}