From b2c11407c7a4f67446ab971e32bce3c79d877191 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 20 Apr 2023 11:44:47 +0200 Subject: [PATCH] fix(npm): run install:all as part of install --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7770fe20132e..5e5cefae3c5b 100644 --- a/package.json +++ b/package.json @@ -31,10 +31,11 @@ "dev": "npm run build:prepare && nf -j Procfile.dev start", "eslint": "eslint .", "filecheck": "ts-node filecheck/cli.ts", + "install:all": "find . -mindepth 2 -name 'package-lock.json' ! -wholename '**/node_modules/**' -print0 | xargs -n1 -0 sh -cx 'npm --prefix $(dirname $0) install'", "jest": "cross-env NODE_OPTIONS=--experimental-vm-modules jest", "m2h": "ts-node markdown/m2h/cli.ts", "prepack": "npm run build:dist", - "prepare": "husky install", + "prepare": "husky install && npm run install:all", "prettier-check": "prettier --check .", "prettier-format": "prettier --write .", "start": "(test -f client/build/index.html || npm run build:client) && (test -f ssr/dist/main.js || npm run build:ssr) && (test -d client/build/en-us/_spas || npm run tool spas) && nf -j Procfile.start start",