From 0e128f4db05d59e5e1798b029ef1b8cfd3d8031b Mon Sep 17 00:00:00 2001 From: Mars Hall Date: Mon, 26 Mar 2018 11:57:03 -0700 Subject: [PATCH] Support npm private modules --- bin/compile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 031fa38..bdf90b9 100755 --- a/bin/compile +++ b/bin/compile @@ -54,7 +54,9 @@ cp "$BP_DIR/.profile.d/inject_react_app_env.sh" "$profile_d_dir/" # * https://github.com/facebookincubator/create-react-app/blob/v0.2.3/template/README.md#adding-custom-environment-variables # * `NODE_*`, especially for `NODE_PATH` # * https://github.com/facebookincubator/create-react-app/pull/476 -export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_)' +# * `NPM_*`, especially for `NPM_TOKEN` +# * https://docs.npmjs.com/private-modules/ci-server-config +export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_|NPM_)' # Build the javascript bundle npm run build