Skip to content

Commit 29854a8

Browse files
committed
move type build to a separate build:types command
1 parent c1b65a4 commit 29854a8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
"./package.json": "./package.json"
3030
},
3131
"scripts": {
32-
"build": "npm run build:server && npm run build:client",
32+
"build": "rm -rf ./.server && npm run build:server && npm run build:client && npm run build:types",
3333
"build:client": "NODE_ENV=${NODE_ENV:-production} webpack",
34-
"build:server": "rm -rf ./.server && babel --delete-dir-on-start --extensions \".js\",\".ts\" --ignore \"**/*.test.ts\" --copy-files --no-copy-ignored --source-maps --out-dir ./.server ./src && tsc --emitDeclarationOnly",
34+
"build:server": "babel --delete-dir-on-start --extensions \".js\",\".ts\" --ignore \"**/*.test.ts\" --copy-files --no-copy-ignored --source-maps --out-dir ./.server ./src",
35+
"build:types": "tsc --emitDeclarationOnly",
3536
"dev": "concurrently \"npm run client:watch\" \"npm run server:watch:dev\" --kill-others --names \"client,server\" --prefix-colors \"red.dim,blue.dim\"",
3637
"dev:debug": "concurrently \"npm run client:watch\" \"npm run server:watch:debug\" --kill-others --names \"client,server\" --prefix-colors \"red.dim,blue.dim\"",
3738
"format": "npm run format:check -- --write",

0 commit comments

Comments
 (0)