fix(verify): isolate package archives and published canary caches

This commit is contained in:
morluto
2026-10-09 04:12:49 +08:00
parent 90b06db6c0
commit 3eb7dbdc16
6 changed files with 118 additions and 28 deletions
+2 -10
View File
@@ -6,7 +6,6 @@ import { exec, json, run } from "./lib/verify-package-core.mjs";
/** Install the packed CLI globally with and without optional dependencies and verify PTY degradation. */
export async function verifyPackageInstall({
root,
tarball,
prefix,
workspace,
@@ -14,14 +13,7 @@ export async function verifyPackageInstall({
}) {
await exec(
"npm",
[
"install",
"--global",
"--ignore-scripts",
"--prefix",
prefix,
join(root, tarball),
],
["install", "--global", "--ignore-scripts", "--prefix", prefix, tarball],
{ env: environment },
);
const cli = join(prefix, "bin", "rea");
@@ -61,7 +53,7 @@ export async function verifyPackageInstall({
"--omit=optional",
"--prefix",
noOptionalPrefix,
join(root, tarball),
tarball,
],
{ env: environment },
);