|
@@ -23,9 +23,11 @@ needs_refresh() {
|
|
|
|
|
|
|
|
record() { mkdir -p "$STAMP_DIR"; hash_of "$1" > "$STAMP_DIR/$2"; }
|
|
record() { mkdir -p "$STAMP_DIR"; hash_of "$1" > "$STAMP_DIR/$2"; }
|
|
|
|
|
|
|
|
-if [ ! -d node_modules/express ] || needs_refresh package-lock.json lock; then
|
|
|
|
|
|
|
+# --include=dev is required even in prod mode: NODE_ENV=production would
|
|
|
|
|
+# otherwise omit typescript/tsx, and both modes compile or watch from source.
|
|
|
|
|
+if [ ! -d node_modules/typescript ] || needs_refresh package-lock.json lock; then
|
|
|
echo "[entrypoint] installing dependencies"
|
|
echo "[entrypoint] installing dependencies"
|
|
|
- npm ci --no-audit --no-fund
|
|
|
|
|
|
|
+ npm ci --include=dev --no-audit --no-fund
|
|
|
record package-lock.json lock
|
|
record package-lock.json lock
|
|
|
else
|
|
else
|
|
|
echo "[entrypoint] dependencies up to date"
|
|
echo "[entrypoint] dependencies up to date"
|