replace "npm run" by pkgjs-run
authorYadd <yadd@debian.org>
Sun, 26 Jan 2025 15:18:40 +0000 (16:18 +0100)
committerJérémy Lal <kapouer@melix.org>
Sun, 26 Jan 2025 15:18:40 +0000 (16:18 +0100)
Forwarded: not-needed
Last-Update: 2023-02-17

Gbp-Pq: Name replace-npm-run.patch

llhttp/bin/build_wasm.ts

index f8be3d2b2f5767ea19fcad70c4dcbe80494d0c90..66fd6fd948784b4d6f0525c7fd71ffc9f9d24efe 100644 (file)
@@ -43,7 +43,7 @@ if (process.argv[2] === '--docker') {
 // @ts-ignore
     cmd += ` --user ${process.getuid!()}:${process.getegid!()}`;
   }
-  cmd += ` --mount type=bind,source=${WASM_SRC}/build,target=/home/node/llhttp/build llhttp_wasm_builder npm run wasm`;
+  cmd += ` --mount type=bind,source=${WASM_SRC}/build,target=/home/node/llhttp/build llhttp_wasm_builder pkgjs-run wasm`;
 
   // eslint-disable-next-line no-console
   console.log(`> ${cmd}\n\n`);
@@ -61,7 +61,7 @@ try {
 }
 
 // Build ts
-execSync('npm run build', { cwd: WASM_SRC, stdio: 'inherit' });
+execSync('pkgjs-run build', { cwd: WASM_SRC, stdio: 'inherit' });
 
 // Build wasm binary
 execSync(