Rename uses of install-node-modules.sh in fbsource

Differential Revision: D15848788

fbshipit-source-id: b98626083ed7aee108f27d6e8c5c7b637e1b2327
This commit is contained in:
Andres Suarez
2019-06-17 06:04:05 -07:00
committed by Facebook Github Bot
parent 66c52930f2
commit 198841d1d7
2 changed files with 8 additions and 8 deletions

View File

@@ -16,16 +16,16 @@ cd "$ROOT_DIR/xplat/sonar"
# When running in Sandcastle or devservers, the module install will fail # When running in Sandcastle or devservers, the module install will fail
# because we can't reach the internet. Setting the fwdproxy is dangerous, so # because we can't reach the internet. Setting the fwdproxy is dangerous, so
# the next best thing is to install the modules with `--ignore-scripts`. # the next best thing is to install the modules with `--ignore-scripts`.
# However, we can't run `install-node-modules.sh` like this all of the time. # However, we can't run `install-node-modules` like this all of the time.
# `install-node-modules.sh` uses its args as keys for the "yarn watchman check" # `install-node-modules` uses its args as keys for the "yarn watchman check"
# cache. So if we run `install-node-modules.sh` outside of this script without # cache. So if we run `install-node-modules` outside of this script without
# the flag, but then this script runs it with the flag, we're going to # the flag, but then this script runs it with the flag, we're going to
# invalidate the cache. # invalidate the cache.
# If `node_modules` exists, we can't tell if it was created with # If `node_modules` exists, we can't tell if it was created with
# `--ignore-scripts` or not, so we play it safe, and avoid touching it. # `--ignore-scripts` or not, so we play it safe, and avoid touching it.
if [[ ! -d "node_modules" ]]; then if [[ ! -d "node_modules" ]]; then
"$ROOT_DIR/xplat/third-party/yarn/install-node-modules.sh" --ignore-scripts --ignore-engines "$ROOT_DIR/xplat/third-party/yarn/install-node-modules" --ignore-scripts --ignore-engines
fi fi
exec \ exec \

View File

@@ -16,16 +16,16 @@ cd "$ROOT_DIR/xplat/sonar"
# When running in Sandcastle or devservers, the module install will fail # When running in Sandcastle or devservers, the module install will fail
# because we can't reach the internet. Setting the fwdproxy is dangerous, so # because we can't reach the internet. Setting the fwdproxy is dangerous, so
# the next best thing is to install the modules with `--ignore-scripts`. # the next best thing is to install the modules with `--ignore-scripts`.
# However, we can't run `install-node-modules.sh` like this all of the time. # However, we can't run `install-node-modules` like this all of the time.
# `install-node-modules.sh` uses its args as keys for the "yarn watchman check" # `install-node-modules` uses its args as keys for the "yarn watchman check"
# cache. So if we run `install-node-modules.sh` outside of this script without # cache. So if we run `install-node-modules` outside of this script without
# the flag, but then this script runs it with the flag, we're going to # the flag, but then this script runs it with the flag, we're going to
# invalidate the cache. # invalidate the cache.
# If `node_modules` exists, we can't tell if it was created with # If `node_modules` exists, we can't tell if it was created with
# `--ignore-scripts` or not, so we play it safe, and avoid touching it. # `--ignore-scripts` or not, so we play it safe, and avoid touching it.
if [[ ! -d "node_modules" ]]; then if [[ ! -d "node_modules" ]]; then
"$ROOT_DIR/xplat/third-party/yarn/install-node-modules.sh" --ignore-scripts --ignore-engines "$ROOT_DIR/xplat/third-party/yarn/install-node-modules" --ignore-scripts --ignore-engines
fi fi
# Prefer the internal version of Flow, which should be in the PATH - but # Prefer the internal version of Flow, which should be in the PATH - but