mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
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:
parent
428a12bc77
commit
23cf2b948d
21 changed files with 1172 additions and 512 deletions
10
scripts/npm-command.mjs
Normal file
10
scripts/npm-command.mjs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue