Skip to content

Commit 3bdf101

Browse files
authored
feat!: disable implicit @types/ imports (#50)
Fixes #42
1 parent 53cbe37 commit 3bdf101

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"esModuleInterop": true, // Will be true anyhow because module is node16
1212
"allowSyntheticDefaultImports": true, // Will be true anyhow because esModuleInterop is true
1313
"skipLibCheck": false, // See https://github.com/voxpelli/tsconfig/issues/1
14+
"types": ["node"], // Don't implicitly pull in declarations from `@types` packages
1415

1516
/* Clean up generated declarations */
1617
"removeComments": true,

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"test": "tsc"
2525
},
2626
"devDependencies": {
27+
"@types/node": "^22.5.4",
2728
"husky": "^9.1.5",
2829
"typescript": "~5.5.3",
2930
"validate-conventional-commit": "^1.0.4"

0 commit comments

Comments
 (0)