Skip to content

Commit 223bf98

Browse files
committed
Update tsconfig.json
1 parent e7b1adb commit 223bf98

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"rehype-stringify": "^9.0.0",
7070
"remark-cli": "^11.0.0",
7171
"remark-preset-wooorm": "^9.0.0",
72-
"rimraf": "^3.0.0",
7372
"tape": "^5.0.0",
7473
"terser": "^5.0.0",
7574
"type-coverage": "^2.0.0",
@@ -78,10 +77,11 @@
7877
"xo": "^0.53.0"
7978
},
8079
"scripts": {
81-
"build": "rimraf \"dev/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
80+
"prepack": "npm run build && npm run format",
81+
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw",
8282
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
8383
"test-api": "node --conditions development test/index.js",
84-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js",
84+
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
8585
"test": "npm run build && npm run format && npm run test-coverage"
8686
},
8787
"prettier": {

tsconfig.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"include": ["dev/**/*.js", "test/**/*.js"],
2+
"include": ["**/*.js"],
3+
"exclude": ["coverage/", "node_modules/", "lib/index.js", "index.js"],
34
"compilerOptions": {
4-
"target": "ES2020",
5-
"lib": ["ES2020"],
6-
"module": "ES2020",
7-
"moduleResolution": "node",
8-
"allowJs": true,
95
"checkJs": true,
106
"declaration": true,
117
"emitDeclarationOnly": true,
12-
"allowSyntheticDefaultImports": true,
8+
"exactOptionalPropertyTypes": true,
9+
"forceConsistentCasingInFileNames": true,
10+
"lib": ["es2020"],
11+
"module": "node16",
12+
"newLine": "lf",
1313
"skipLibCheck": true,
14-
"strict": true
14+
"strict": true,
15+
"target": "es2020"
1516
}
1617
}

0 commit comments

Comments
 (0)