summaryrefslogtreecommitdiffstats
path: root/debian/patches/replace-npm-run.patch
blob: 819cf45bc707428b0c90fc8939cd89746985a187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: replace "npm run" by pkgjs-run
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-02-17

--- a/llhttp/bin/build_wasm.ts
+++ b/llhttp/bin/build_wasm.ts
@@ -43,7 +43,7 @@
 // @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`;
 
   /* tslint:disable-next-line no-console */
   console.log(`> ${cmd}\n\n`);
@@ -61,7 +61,7 @@
 }
 
 // Build ts
-execSync('npm run build', { cwd: WASM_SRC, stdio: 'inherit' });
+execSync('pkgjs-run build', { cwd: WASM_SRC, stdio: 'inherit' });
 
 // Build wasm binary
 execSync(