Skip to content

Commit 94c701e

Browse files
committed
chore: revert "use @total-typescript/tsconfig over manual configuration"
This broke ts-node usage
1 parent ac4f437 commit 94c701e

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"check": "biome check",
3535
"check:fix": "biome check --write",
3636
"format:fix": "biome format --write",
37-
"typecheck": "tsc --noEmit",
37+
"typecheck": "tsc",
3838
"test": "vitest run",
3939
"build": "tsup --config='scripts/build.ts'",
4040
"preversion": "pnpm run check && pnpm run typecheck && pnpm run test",
@@ -56,7 +56,6 @@
5656
"@commitlint/cli": "^19.0.3",
5757
"@commitlint/config-conventional": "^19.0.3",
5858
"@semantic-release/git": "^10.0.1",
59-
"@total-typescript/tsconfig": "^1.0.4",
6059
"benny": "^3.7.1",
6160
"commitizen": "^4.3.0",
6261
"cz-conventional-changelog": "^3.3.0",

pnpm-lock.yaml

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "@total-typescript/tsconfig/bundler/no-dom/library",
3+
// Taken from @total-typescript/tsconfig/bundler/no-dom/library, which doesn't work well with ts-node
4+
"compilerOptions": {
5+
/* Base Options: */
6+
"esModuleInterop": true,
7+
"skipLibCheck": true,
8+
"target": "es2022",
9+
"allowJs": true,
10+
"resolveJsonModule": true,
11+
"moduleDetection": "force",
12+
"isolatedModules": true,
13+
"verbatimModuleSyntax": true,
14+
/* Strictness */
15+
"strict": true,
16+
"noUncheckedIndexedAccess": true,
17+
"noImplicitOverride": true,
18+
/* If NOT transpiling with TypeScript: */
19+
"module": "preserve",
20+
"noEmit": true,
21+
/* If your code doesn't run in the DOM: */
22+
"lib": ["es2022"]
23+
},
424
"include": ["src"],
525
"exclude": ["node_modules", "**/__tests__/*"]
626
}

0 commit comments

Comments
 (0)