diff options
author | HampusM <hampus@hampusmat.com> | 2021-07-25 21:51:05 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-07-25 21:51:05 +0200 |
commit | d856031c58e26992f3e0a481084a190a50b0bcf7 (patch) | |
tree | 331355808b6f785631fa760c8547ed5456af0068 | |
parent | ed804949e979a667bc271332dcae1ae9fe0939a6 (diff) |
Scripts make better use of Yarn workspaces
-rw-r--r-- | package.json | 6 | ||||
-rw-r--r-- | 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", |