From b61912a70ccca6e006aa3aad1b60532822539fee Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Tue, 19 Mar 2024 11:53:19 +0100 Subject: [PATCH] fix: read prepare phase builds frontend and backend --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54037ea4647..f89ff3f70c5 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",