Update tsconfig.json
This commit is contained in:
parent
d85b2c020a
commit
174ebb977a
2 changed files with 14 additions and 8 deletions
|
@ -56,17 +56,17 @@
|
|||
"prettier": "^2.0.0",
|
||||
"remark-cli": "^11.0.0",
|
||||
"remark-preset-wooorm": "^9.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"tape": "^5.0.0",
|
||||
"type-coverage": "^2.0.0",
|
||||
"typescript": "^5.0.0",
|
||||
"xo": "^0.53.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rimraf \"dev/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage && micromark-build",
|
||||
"prepack": "npm run build && npm run format",
|
||||
"build": "tsc --build --clean && tsc --build && type-coverage && micromark-build",
|
||||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
||||
"test-api": "node --conditions development test/index.js",
|
||||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js",
|
||||
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
|
||||
"test": "npm run build && npm run format && npm run test-coverage"
|
||||
},
|
||||
"prettier": {
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
{
|
||||
"include": ["dev/**/*.js", "test/**/*.js"],
|
||||
"include": ["**/*.js"],
|
||||
"exclude": ["coverage/", "lib/", "node_modules/", "index.js"],
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"lib": ["ES2022"],
|
||||
"module": "Node16",
|
||||
"customConditions": ["development"],
|
||||
"checkJs": true,
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"strict": true
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": ["es2020"],
|
||||
"module": "node16",
|
||||
"newLine": "lf",
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"target": "es2020"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue