Skip to content

Commit b9e06b0

Browse files
authored
Merge pull request #138 from enure/build-consolidate-tsconfig
build: consolidate tsconfig
2 parents b806434 + f2e97e5 commit b9e06b0

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"scripts": {
2929
"prepare": "pnpm run build",
30-
"build": "npx vite build && tsc -p tsconfig.esm.json",
30+
"build": "npx vite build && tsc --listEmittedFiles",
3131
"test": "vitest run",
3232
"test-watch": "vitest",
3333
"preversion": "pnpm run build",

tsconfig.esm.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

tsconfig.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
2-
"include": ["src", "types"],
2+
"include": ["src"],
33
"compilerOptions": {
4-
"target": "es5",
54
"lib": ["dom", "esnext"],
6-
"importHelpers": true,
7-
"declaration": false,
8-
"rootDir": "./src",
5+
"importHelpers": true,
96
"strict": true,
107
"noImplicitAny": true,
118
"strictNullChecks": true,
@@ -17,13 +14,12 @@
1714
"noUnusedParameters": true,
1815
"noImplicitReturns": true,
1916
"noFallthroughCasesInSwitch": true,
20-
"moduleResolution": "node",
21-
"baseUrl": "./",
22-
"paths": {
23-
"*": ["src/*", "node_modules/*"]
24-
},
25-
"jsx": "react",
2617
"esModuleInterop": true,
27-
"typeRoots": ["./node_modules/@types/"]
18+
"module": "esnext",
19+
"target": "ES2020",
20+
"declaration": true,
21+
"moduleResolution": "node",
22+
"emitDeclarationOnly": true,
23+
"outDir": "dist",
2824
}
2925
}

0 commit comments

Comments
 (0)