From 37e908a455aac805b5039b033027a501f1ab1fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 15 May 2023 14:15:40 +0200 Subject: [PATCH] Test build on prepare (#3774) ## About the changes Re-adding build as part of prepare plus some debug logs for development process (will be removed later) --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 7e668cf7b1..eb1932b414 100644 --- a/package.json +++ b/package.json @@ -31,13 +31,13 @@ "main": "./dist/lib/server-impl.js", "scripts": { "start": "TZ=UTC node ./dist/server.js", - "build:backend": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/ && tsc --pretty --strictNullChecks false", - "build:frontend": "yarn --cwd ./frontend run build", - "build": "yarn run build:frontend && yarn run build:backend", + "build:backend": "echo BUILD-BACKEND && copyfiles -u 1 src/mailtemplates/**/*.mustache dist/ && tsc --pretty --strictNullChecks false && echo DONE_BUILD_BACKEND", + "build:frontend": "echo BUILD-FRONTEND && yarn --cwd ./frontend run build && echo DONE_BUILD_FRONTEND", + "build": "echo BUILD && yarn run build:frontend && yarn run build:backend && echo DONE_BUILD", "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": "node scripts/husky-install && yarn --cwd ./frontend install", + "prepare": "echo PREPARE && node scripts/husky-install && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi && echo DONE_PREPARE", "prestart:dev": "yarn run clean", "start:dev": "TZ=UTC NODE_ENV=development tsc-watch --strictNullChecks false --onSuccess \"node dist/server-dev.js\"", "copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",