From dbfb9f756849bf17fbab4f8add126ff5eebaae30 Mon Sep 17 00:00:00 2001 From: Jia Yuan Lo Date: Sat, 29 May 2021 18:53:25 +0800 Subject: [PATCH] emscripten: dont install test deps by default --- packages/emscripten/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/emscripten/build.sh b/packages/emscripten/build.sh index a0e1c1a39..94be43f8d 100644 --- a/packages/emscripten/build.sh +++ b/packages/emscripten/build.sh @@ -183,9 +183,9 @@ termux_step_make_install() { termux_step_create_debscripts() { cat <<- EOF > postinst #!$TERMUX_PREFIX/bin/sh - echo 'Running "npm ci --no-optional" in $TERMUX_PREFIX/lib/emscripten ...' + echo 'Running "npm ci --no-optional --production" in $TERMUX_PREFIX/lib/emscripten ...' cd "$TERMUX_PREFIX/lib/emscripten" - npm ci --no-optional + npm ci --no-optional --production echo echo 'Post-install notice:' echo 'If this is the first time installing Emscripten,' @@ -193,6 +193,10 @@ termux_step_create_debscripts() { echo 'If you are upgrading, you may want to clear the' echo 'cache by running the command below to fix issues.' echo '"emcc --clear-cache"' + echo 'Optional: Run the command below in Emscripten' + echo 'directory to install tests dependencies before' + echo 'running test suite.' + echo '"npm ci --no-optional"' EOF cat <<- EOF > postrm