Fix Windows smoke npm invocation

This commit is contained in:
Mohamed Boudra
2026-03-10 18:12:09 +07:00
parent 7b4ca8394b
commit 51bbebcdd5
2 changed files with 9 additions and 1 deletions
@@ -362,8 +362,12 @@ async function ensurePackagedArtifact(binaryPath) {
if (process.env.PASEO_MANAGED_SMOKE_SKIP_BUILD === "1") {
return;
}
const npmExecPath = process.env.npm_execpath;
if (!npmExecPath) {
throw new Error("npm_execpath is required to build the packaged desktop artifact during smoke tests.");
}
try {
await execFileAsync("npm", ["run", "build"], {
await execFileAsync(process.execPath, [npmExecPath, "run", "build"], {
cwd: desktopRoot,
env: process.env,
maxBuffer: 20 * 1024 * 1024,