Skip to content

Commit

Permalink
Refactor tsconfig.jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 26, 2023
1 parent ebf43e7 commit 8f18a1c
Show file tree
Hide file tree
Showing 91 changed files with 87 additions and 176 deletions.
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"mdast-util-find-and-replace": "^3.0.0",
"mdast-util-to-string": "^4.0.0",
"mdast-zone": "^6.0.0",
"node-fetch": "^3.0.0",
"parse-author": "^2.0.0",
"prettier": "^3.0.0",
"property-information": "^6.0.0",
Expand All @@ -90,7 +89,6 @@
"remark-cli": "^11.0.0",
"remark-parse": "^10.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"strip-indent": "^4.0.0",
"tape": "^5.0.0",
"to-vfile": "^8.0.0",
Expand All @@ -99,21 +97,20 @@
"type-coverage": "^2.0.0",
"type-fest": "^4.0.0",
"typescript": "^5.0.0",
"undici": "^5.0.0",
"unified": "^11.0.0",
"unist-builder": "^4.0.0",
"vfile": "^6.0.0",
"vfile-find-down": "^7.0.0",
"xo": "^0.56.0"
},
"scripts": {
"build-workspace": "npm run build --workspaces",
"build-monorepo": "rimraf \"/*.d.ts\" \"{test,script}/**/*.d.ts\" && tsc && type-coverage",
"build-packages": "node script/build-packages",
"build": "npm run build-packages && npm run build-workspace && npm run build-monorepo",
"generate": "node script/build-packages.js",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test/index.js && npm run test --workspaces --if-present",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
},
"prettier": {
"tabWidth": 2,
Expand Down
1 change: 0 additions & 1 deletion packages/hast-util-from-string/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@types/hast": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-from-string/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-is-body-ok-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"hast-util-is-element": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-is-body-ok-link/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-is-conditional-comment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@types/hast": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-is-conditional-comment/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-is-css-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@types/hast": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-is-css-link/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-is-css-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@types/hast": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-is-css-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-is-event-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"index.js"
],
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-is-event-handler/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-is-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"hast-util-is-element": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-is-javascript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/hast-util-to-string/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@types/hast": "^3.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/hast-util-to-string/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/html-enumerated-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"index.js"
],
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/html-enumerated-attributes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
4 changes: 1 addition & 3 deletions packages/html-url-attributes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"index.d.ts",
"index.js"
],
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
3 changes: 1 addition & 2 deletions packages/html-url-attributes/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
4 changes: 1 addition & 3 deletions packages/html-whitespace-sensitive-tag-names/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
"index.d.ts",
"index.js"
],
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
3 changes: 1 addition & 2 deletions packages/html-whitespace-sensitive-tag-names/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-concat-css-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"excludeFromPreset": true,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-concat-css-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-concat-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"unified": "^11.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"excludeFromPreset": true,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-concat-javascript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-css-to-top/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"excludeFromPreset": true,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-css-to-top/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-javascript-to-bottom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"excludeFromPreset": true,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-javascript-to-bottom/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-attribute-whitespace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-attribute-whitespace/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-css-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-css-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-doctype/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"excludeFromPreset": true,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-doctype/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-enumerated-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-enumerated-attribute/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-event-handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-event-handler/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-javascript-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-javascript-script/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-javascript-url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-javascript-url/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-json-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-json-script/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-language/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-language/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
1 change: 0 additions & 1 deletion packages/rehype-minify-media-attribute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"unist-util-visit": "^5.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"test": "node --conditions development test.js"
},
"xo": false,
Expand Down
3 changes: 1 addition & 2 deletions packages/rehype-minify-media-attribute/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"extends": "../../tsconfig.json"
}
Loading

0 comments on commit 8f18a1c

Please sign in to comment.