From bd53193dc95d16ec13e147070c7fb1071f8911f3 Mon Sep 17 00:00:00 2001 From: Simon Hornby Date: Tue, 16 May 2023 10:51:27 +0200 Subject: [PATCH] fix: allow null checker to not fail if it gets no output (#3779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What Patches the build scripts so that the null checker doesn't fail --------- Co-authored-by: Gastón Fournier --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index eb1932b414..a7e858dfc0 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": "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", + "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", "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": "echo PREPARE && node scripts/husky-install && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi && echo DONE_PREPARE", + "prepare": "node scripts/husky-install && yarn --cwd ./frontend install && if [ ! -d ./dist ]; then yarn build; fi", "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/",