Update tsconfig.json

This commit is contained in:
Titus Wormer 2023-03-30 14:47:37 +02:00
parent d85b2c020a
commit 174ebb977a
No known key found for this signature in database
GPG key ID: E6E581152ED04E2E
2 changed files with 14 additions and 8 deletions

View file

@ -56,17 +56,17 @@
"prettier": "^2.0.0", "prettier": "^2.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",
"type-coverage": "^2.0.0", "type-coverage": "^2.0.0",
"typescript": "^5.0.0", "typescript": "^5.0.0",
"xo": "^0.53.0" "xo": "^0.53.0"
}, },
"scripts": { "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", "format": "remark . -qfo && prettier . -w --loglevel 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 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" "test": "npm run build && npm run format && npm run test-coverage"
}, },
"prettier": { "prettier": {

View file

@ -1,12 +1,18 @@
{ {
"include": ["dev/**/*.js", "test/**/*.js"], "include": ["**/*.js"],
"exclude": ["coverage/", "lib/", "node_modules/", "index.js"],
"compilerOptions": { "compilerOptions": {
"target": "ES2022", "customConditions": ["development"],
"lib": ["ES2022"],
"module": "Node16",
"checkJs": true, "checkJs": true,
"declaration": true, "declaration": true,
"emitDeclarationOnly": true, "emitDeclarationOnly": true,
"strict": true "exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2020"],
"module": "node16",
"newLine": "lf",
"skipLibCheck": true,
"strict": true,
"target": "es2020"
} }
} }