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

Commit 0e30c01

Browse files
committed
chore: warn when NODE_ENV == "production"
1 parent bac1417 commit 0e30c01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

run-build-functions.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,11 @@ 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+
284289
# Automatically installed Build plugins
285290
if [ ! -d "$PWD/.netlify" ]
286291
then
@@ -888,3 +893,7 @@ unset_go_import_path() {
888893
unlink $GOPATH/src/$GO_IMPORT_PATH
889894
fi
890895
}
896+
897+
warn() {
898+
echo "WARNING: $1"
899+
}

0 commit comments

Comments
 (0)