Skip to content

Commit dfb14bc

Browse files
committed
Refactor tsconfig.json
1 parent 1dfbc06 commit dfb14bc

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@
3939
},
4040
"devDependencies": {
4141
"@types/nlcst": "^2.0.0",
42-
"@types/rimraf": "^3.0.0",
4342
"@types/tape": "^5.0.0",
4443
"c8": "^8.0.0",
4544
"nlcst-to-string": "^4.0.0",
4645
"parse-english": "^7.0.0",
4746
"prettier": "^3.0.0",
4847
"remark-cli": "^11.0.0",
4948
"remark-preset-wooorm": "^9.0.0",
50-
"rimraf": "^3.0.0",
5149
"tape": "^5.0.0",
5250
"to-vfile": "^8.0.0",
5351
"type-coverage": "^2.0.0",
@@ -57,7 +55,7 @@
5755
"xo": "^0.56.0"
5856
},
5957
"scripts": {
60-
"build": "rimraf \"*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage",
58+
"build": "tsc --build --clean && tsc --build && type-coverage",
6159
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6260
"test-api": "node --conditions development test/index.js",
6361
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js",

tsconfig.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
{
2-
"include": ["*.js", "test/**/*.js"],
32
"compilerOptions": {
4-
"target": "ES2020",
5-
"lib": ["ES2020"],
6-
"module": "ES2020",
7-
"moduleResolution": "node",
8-
"allowJs": true,
93
"checkJs": true,
4+
"customConditions": ["development"],
105
"declaration": true,
116
"emitDeclarationOnly": true,
12-
"allowSyntheticDefaultImports": true,
13-
"skipLibCheck": true,
14-
"strict": true
15-
}
7+
"exactOptionalPropertyTypes": true,
8+
"lib": ["es2020"],
9+
"module": "node16",
10+
"strict": true,
11+
"target": "es2020"
12+
},
13+
"exclude": ["coverage/", "node_modules/"],
14+
"include": ["**/*.js"]
1615
}

0 commit comments

Comments
 (0)