Skip to content

Commit aa6707d

Browse files
committed
Install production-only dependencies for cross-compiler and users packages
1 parent fb409fb commit aa6707d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
deps/
21
build/
32
out/
43
node_modules/

scripts/build

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ CLR="\e[0m"
66

77
TOOLCHAIN=`node -p "require('nodeos-cross-toolchain')"`
88

9-
NODE_DIR=`node -p "require('nodeos-nodejs')"`
10-
119
source $TOOLCHAIN/scripts/adjustEnvVars.sh &&
1210
source scripts/utils.sh || exit $?
1311

@@ -17,7 +15,7 @@ PATH=$TOOLCHAIN/bin:$PATH
1715
# Build cross-compiler (if needed)
1816
(
1917
cd $TOOLCHAIN
20-
BITS=$BITS CPU=$CPU MACHINE=$MACHINE npm run build || exit $?
18+
BITS=$BITS CPU=$CPU MACHINE=$MACHINE npm install --production || exit $?
2119
) || exit $?
2220

2321

scripts/utils.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
NODE_DIR=`node -p "require('nodeos-nodejs')"`
2+
13
NPMi='CC=$TARGET-gcc \
24
CXX=$TARGET-g++ \
35
npm_config_prefix=$STEP_DIR \
46
npm install \
7+
--production \
58
--quiet --no-spin \
69
--arch=$NODE_ARCH \
710
--nodedir=$NODE_DIR \

0 commit comments

Comments
 (0)