diff --git a/llmr.gyp b/llmr.gyp index 83c0d6c64..c9ed89473 100644 --- a/llmr.gyp +++ b/llmr.gyp @@ -34,22 +34,28 @@ } }, { - 'target_name': 'copy_node_modules', + 'target_name': 'npm_install', 'type': 'none', 'hard_dependency': 1, - 'copies': [ + 'actions': [ { - 'files': ['bin/node_modules'], - 'destination': '<(PRODUCT_DIR)/bin/node_modules' + 'action_name': 'npm install', + 'inputs': [ + 'bin/package.json', + ], + 'outputs': [ + 'bin/node_modules', + ], + 'action': ['./scripts/npm_install.sh'] } - ] + ], }, { 'target_name': 'build_stylesheet', 'type': 'none', 'hard_dependency': 1, 'dependencies': [ - 'copy_node_modules' + 'npm_install' ], 'actions': [ { diff --git a/scripts/npm_install.sh b/scripts/npm_install.sh new file mode 100755 index 000000000..04c1b7e63 --- /dev/null +++ b/scripts/npm_install.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +cd bin +npm install