Skip to content

Commit c1b65a4

Browse files
committed
build types in .server
1 parent 38531b5 commit c1b65a4

2 files changed

Lines changed: 9 additions & 14 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"build": "npm run build:server && npm run build:client",
3333
"build:client": "NODE_ENV=${NODE_ENV:-production} webpack",
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",
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",
3535
"dev": "concurrently \"npm run client:watch\" \"npm run server:watch:dev\" --kill-others --names \"client,server\" --prefix-colors \"red.dim,blue.dim\"",
3636
"dev:debug": "concurrently \"npm run client:watch\" \"npm run server:watch:debug\" --kill-others --names \"client,server\" --prefix-colors \"red.dim,blue.dim\"",
3737
"format": "npm run format:check -- --write",

tsconfig.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"checkJs": true,
55
"esModuleInterop": true,
66
"module": "NodeNext",
7-
"noEmit": true,
87
"resolveJsonModule": true,
98
"skipLibCheck": true,
109
"strict": true,
@@ -13,17 +12,13 @@
1312
"paths": {
1413
"~/*": ["./*"]
1514
},
16-
"types": ["@testing-library/jest-dom", "jest"]
15+
"types": ["@testing-library/jest-dom", "jest"],
16+
"declaration": true,
17+
"emitDeclarationOnly": true,
18+
"isolatedModules": true,
19+
"outDir": ".server",
20+
"rootDir": "./src"
1721
},
18-
"include": [
19-
"**/*.cjs",
20-
"**/*.js",
21-
"**/*.mjs",
22-
"**/*.ts",
23-
".eslintrc.*",
24-
".prettierrc.*",
25-
".lintstagedrc.*",
26-
"node_modules/@types/jest/index.d.ts"
27-
],
28-
"exclude": ["coverage", "node_modules", ".public", ".server"]
22+
"include": ["src/**/*"],
23+
"exclude": ["coverage", "node_modules", ".public", ".server", "**/*.test.*"]
2924
}

0 commit comments

Comments
 (0)