Refactor tsconfig.json
This commit is contained in:
parent
bf126a045a
commit
bd953c935e
2 changed files with 10 additions and 12 deletions
|
@ -46,7 +46,6 @@
|
||||||
"remark": "^14.0.0",
|
"remark": "^14.0.0",
|
||||||
"remark-cli": "^11.0.0",
|
"remark-cli": "^11.0.0",
|
||||||
"remark-preset-wooorm": "^9.0.0",
|
"remark-preset-wooorm": "^9.0.0",
|
||||||
"rimraf": "^3.0.0",
|
|
||||||
"tape": "^5.0.0",
|
"tape": "^5.0.0",
|
||||||
"to-vfile": "^7.0.0",
|
"to-vfile": "^7.0.0",
|
||||||
"type-coverage": "^2.0.0",
|
"type-coverage": "^2.0.0",
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
"xo": "^0.56.0"
|
"xo": "^0.56.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage",
|
"build": "tsc --build --clean && tsc --build && type-coverage",
|
||||||
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --log-level warn && xo --fix",
|
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --log-level warn && xo --fix",
|
||||||
"test-api": "node --conditions development test/index.js",
|
"test-api": "node --conditions development test/index.js",
|
||||||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
|
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
{
|
{
|
||||||
"include": ["test/**/*.js", "*.js"],
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "ES2020",
|
|
||||||
"lib": ["ES2020"],
|
|
||||||
"module": "ES2020",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
|
"customConditions": ["development"],
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"emitDeclarationOnly": true,
|
"emitDeclarationOnly": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"exactOptionalPropertyTypes": true,
|
||||||
"skipLibCheck": true,
|
"lib": ["es2020"],
|
||||||
"strict": true
|
"module": "node16",
|
||||||
}
|
"strict": true,
|
||||||
|
"target": "es2020"
|
||||||
|
},
|
||||||
|
"exclude": ["coverage/", "node_modules/"],
|
||||||
|
"include": ["**/*.js"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue