From d856031c58e26992f3e0a481084a190a50b0bcf7 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 25 Jul 2021 21:51:05 +0200 Subject: Scripts make better use of Yarn workspaces --- package.json | 6 +++--- packages/server/package.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 32ff023..239b00b 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "private": true, "scripts": { "clean": "rm -rf node_modules packages/*/node_modules packages/client/dist", - "dev": "concurrently -k --kill-others-on-fail \"cd packages/client && yarn serve\" \"cd packages/server && yarn dev\"", - "build": "cd packages/client && yarn build", - "start": "ts-node packages/server/src/app.ts", + "dev": "concurrently -k --kill-others-on-fail \"yarn workspace client serve\" \"yarn workspace server dev\"", + "build": "yarn workspace client build", + "start": "yarn workspace server start", "test": "jest --verbose" }, "workspaces": [ diff --git a/packages/server/package.json b/packages/server/package.json index 06ce863..51fb1e6 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -5,7 +5,8 @@ "author": "HampusMat", "license": "MIT", "scripts": { - "dev": "nodemon src/server.ts" + "dev": "nodemon src/server.ts", + "start": "ts-node src/server.ts" }, "dependencies": { "date-fns": "^2.22.1", -- cgit v1.2.3-18-g5258