Skip to content

Commit fc9557a

Browse files
committed
✨ Support typescript version 6.x
Signed-off-by: kei-g <km.8k6ce+github@gmail.com>
1 parent 39db4ed commit fc9557a

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.c8rc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"branches": 100,
44
"check-coverage": true,
55
"exclude": [
6+
"**/*.d.ts",
67
"**/*.spec.ts",
78
"**/index.ts"
89
],

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"files": {
1111
"includes": [
1212
"**",
13+
"!*.d.ts",
1314
"!*.js",
1415
"!.vscode",
1516
"!coverage",
16-
"!index.d.ts",
1717
"!lib",
1818
"!node_modules"
1919
],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"clean": "rimraf coverage/ index.d.ts index.js lib/",
4646
"cover": "c8 --check-coverage _mocha",
4747
"lint": "biome lint --write",
48+
"postbuild:tsc": "tar -C types/src -cf - . | tar -xf - && rm -fr types",
4849
"postpublish": "run-s clean",
4950
"prebuild": "run-p clean lint",
5051
"prepublishOnly": "run-s build",

tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
"allowImportingTsExtensions": true,
44
"alwaysStrict": true,
55
"declaration": true,
6-
"declarationDir": ".",
6+
"declarationDir": "./types",
77
"downlevelIteration": true,
88
"emitBOM": false,
99
"emitDeclarationOnly": true,
1010
"emitDecoratorMetadata": false,
1111
"experimentalDecorators": false,
12+
"ignoreDeprecations": "6.0",
1213
"lib": [
1314
"ES2015",
1415
],
@@ -17,11 +18,12 @@
1718
"newLine": "lf",
1819
"pretty": false,
1920
"removeComments": true,
21+
"rootDir": ".",
2022
"strict": true,
2123
"strictNullChecks": false,
2224
"target": "ES2015",
23-
"typeRoots": [
24-
"node_modules/@types",
25+
"types": [
26+
"node",
2527
],
2628
},
2729
"exclude": [],

0 commit comments

Comments
 (0)