1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-10 17:53:36 +02:00

Add conditional build on postinstall

This commit is contained in:
Gastón Fournier 2023-05-13 18:16:42 +02:00
parent 0c0da2f557
commit e089c6820d
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -34,6 +34,7 @@
"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",
"postinstall": "if [ ! -d \"./dist\" ]; then yarn build; fi",
"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\"",
@ -43,7 +44,6 @@
"copy-templates": "copyfiles -u 1 src/mailtemplates/**/*.mustache dist/",
"db-migrate": "db-migrate --migrations-dir ./src/migrations",
"lint": "eslint ./src",
"postinstall": "yarn --cwd ./frontend install && yarn run build && echo [${NODE_ENV}] POSTINSTALL DONE",
"local:package": "del-cli --force build && mkdir build && cp -r dist docs CHANGELOG.md LICENSE README.md package.json build",
"prebuild:watch": "yarn run clean",
"build:watch": "tsc -w --strictNullChecks false",