Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 78cda0a

Browse files
committed
chore: wording improvements
1 parent 0e30c01 commit 78cda0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

run-build-functions.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,6 @@ install_dependencies() {
281281
fi
282282
fi
283283

284-
if [ "$NODE_ENV" == "production" ]
285-
then
286-
warn "NODE_ENV is set to 'production'. Any devDependencies in package.json will not be installed"
287-
fi
288-
289284
# Automatically installed Build plugins
290285
if [ ! -d "$PWD/.netlify" ]
291286
then
@@ -511,6 +506,11 @@ install_dependencies() {
511506

512507
if [ -f package.json ]
513508
then
509+
if [ "$NODE_ENV" == "production" ]
510+
then
511+
warn "The environment variable 'NODE_ENV' is set to 'production'. Any 'devDependencies' in package.json will not be installed"
512+
fi
513+
514514
if [ "$NETLIFY_USE_YARN" = "true" ] || ([ "$NETLIFY_USE_YARN" != "false" ] && [ -f yarn.lock ])
515515
then
516516
run_yarn $YARN_VERSION
@@ -896,4 +896,4 @@ unset_go_import_path() {
896896

897897
warn() {
898898
echo "WARNING: $1"
899-
}
899+
}

0 commit comments

Comments
 (0)