File: use-babeljs-command.patch

package info (click to toggle)
node-webassemblyjs 1.11.0%2Bdfsg%2B~cs10.10.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,040 kB
  • sloc: javascript: 28,630; makefile: 84; sh: 42; ansic: 16
file content (19 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Use babeljs command i.e. system's babel to build.
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -23,13 +23,13 @@
   rm -rf "${D}/lib"
 
   # Build CJS
-  ./node_modules/.bin/babel "${D}/src" \
+  babeljs "${D}/src" \
     --out-dir "${D}/lib" \
     --ignore packages/dce/src/libwabt.js \
     $OPTS &
 
   # Build ESM
-  ESM=1 ./node_modules/.bin/babel "${D}/src" \
+  ESM=1 babeljs "${D}/src" \
     --out-dir "${D}/esm" \
     --ignore packages/dce/src/libwabt.js \
     $OPTS &