From d0c1d08431499d613e3d41dd7185699b3ed837a9 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Wed, 12 Jul 2023 22:04:32 -0600 Subject: [PATCH] build: improved build scripts --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 75e3003..9e57dbb 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,11 @@ "main": "ass.js", "scripts": { "dev": "npm run build && npm start", + "build": "rm -dr dist/ & npm run build:backend && npm run build:frontend", + "build:backend": "tsc -p backend/", + "build:frontend": "tsc -p frontend/", "dev-win": "npm run build-skip-options && npm run start", - "build": "NODE_OPTIONS=\"--max-old-space-size=1024\" tsc", + "build-old": "NODE_OPTIONS=\"--max-old-space-size=1024\" tsc", "build-skip-options": "tsc", "start": "node dist/app.js", "setup": "node dist/setup.js",