From 9a649a013477c7bb3f3d39460c08d1a43d73a85f Mon Sep 17 00:00:00 2001 From: Alex Moriarty Date: Thu, 10 Sep 2020 09:42:29 -0700 Subject: [PATCH] [deploy.sh] node-gyp rebuild From nodejs/node-gyp README: - `rebuild` Runs `clean`, `configure` and `build` all in a row - `clean` Removes the `build` directory if it exists This ensures `npm run deploy` succeeds if it is run a second time. `npm run deploy` needs to be re-run if the deploy options change. --- deploy.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/deploy.sh b/deploy.sh index 8c8fc3a6..e22d406a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -86,12 +86,7 @@ fi make -j 8 cd ../gzbridge -if [ -d "./build" ]; then - # node-gym configure will fail if build already exists - rm -rf ./build -fi -$DIR/node_modules/.bin/node-gyp configure -$DIR/node_modules/.bin/node-gyp build -d +$DIR/node_modules/.bin/node-gyp rebuild -d RETVAL=$? if [ $RETVAL -ne 0 ]; then