diff --git a/package.json b/package.json index 54037ea464..f89ff3f70c 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "dev:backend": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"", "dev:frontend": "wait-on tcp:4242 && yarn --cwd ./frontend run dev", "dev": "concurrently \"yarn:dev:backend\" \"yarn:dev:frontend\"", - "prepare": "husky", "prepare:backend": "concurrently \"yarn:copy-templates\" \"yarn:build:backend\"", "prestart:dev": "yarn run clean", "start:dev": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"", @@ -45,6 +44,7 @@ "prebuild:watch": "yarn run clean", "build:watch": "tsc -w --strictNullChecks false", "prebuild": "yarn run clean", + "prepare": "husky && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi", "test": "NODE_ENV=test PORT=4243 node --trace-warnings node_modules/.bin/jest", "test:unit": "NODE_ENV=test PORT=4243 jest --testPathIgnorePatterns=src/test/e2e --testPathIgnorePatterns=dist", "test:docker": "./scripts/docker-postgres.sh",