Skip to content

Commit 0e128f4

Browse files
committed
Support npm private modules
1 parent 1db3314 commit 0e128f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/compile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ cp "$BP_DIR/.profile.d/inject_react_app_env.sh" "$profile_d_dir/"
5454
# * https://github.com/facebookincubator/create-react-app/blob/v0.2.3/template/README.md#adding-custom-environment-variables
5555
# * `NODE_*`, especially for `NODE_PATH`
5656
# * https://github.com/facebookincubator/create-react-app/pull/476
57-
export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_)'
57+
# * `NPM_*`, especially for `NPM_TOKEN`
58+
# * https://docs.npmjs.com/private-modules/ci-server-config
59+
export_env_dir "$ENV_DIR" '^(REACT_APP_|NODE_|NPM_)'
5860

5961
# Build the javascript bundle
6062
npm run build

0 commit comments

Comments
 (0)