Skip to content

Commit

Permalink
Refactor tsconfigs to improve build perf
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 16, 2023
1 parent a4eefcb commit 0beb67b
Show file tree
Hide file tree
Showing 153 changed files with 268 additions and 418 deletions.
75 changes: 1 addition & 74 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,80 +1,7 @@
coverage/
node_modules/
.DS_Store
/packages/remark-lint/*.d.ts
/packages/remark-lint-blockquote-indentation/*.d.ts
/packages/remark-lint-checkbox-character-style/*.d.ts
/packages/remark-lint-checkbox-content-indent/*.d.ts
/packages/remark-lint-code-block-style/*.d.ts
/packages/remark-lint-definition-case/*.d.ts
/packages/remark-lint-definition-spacing/*.d.ts
/packages/remark-lint-emphasis-marker/*.d.ts
/packages/remark-lint-fenced-code-flag/*.d.ts
/packages/remark-lint-fenced-code-marker/*.d.ts
/packages/remark-lint-file-extension/*.d.ts
/packages/remark-lint-final-definition/*.d.ts
/packages/remark-lint-final-newline/*.d.ts
/packages/remark-lint-first-heading-level/*.d.ts
/packages/remark-lint-hard-break-spaces/*.d.ts
/packages/remark-lint-heading-increment/*.d.ts
/packages/remark-lint-heading-style/*.d.ts
/packages/remark-lint-linebreak-style/*.d.ts
/packages/remark-lint-link-title-style/*.d.ts
/packages/remark-lint-list-item-bullet-indent/*.d.ts
/packages/remark-lint-list-item-content-indent/*.d.ts
/packages/remark-lint-list-item-indent/*.d.ts
/packages/remark-lint-list-item-spacing/*.d.ts
/packages/remark-lint-maximum-heading-length/*.d.ts
/packages/remark-lint-maximum-line-length/*.d.ts
/packages/remark-lint-no-auto-link-without-protocol/*.d.ts
/packages/remark-lint-no-blockquote-without-marker/*.d.ts
/packages/remark-lint-no-consecutive-blank-lines/*.d.ts
/packages/remark-lint-no-duplicate-defined-urls/*.d.ts
/packages/remark-lint-no-duplicate-definitions/*.d.ts
/packages/remark-lint-no-duplicate-headings/*.d.ts
/packages/remark-lint-no-duplicate-headings-in-section/*.d.ts
/packages/remark-lint-no-emphasis-as-heading/*.d.ts
/packages/remark-lint-no-empty-url/*.d.ts
/packages/remark-lint-no-file-name-articles/*.d.ts
/packages/remark-lint-no-file-name-consecutive-dashes/*.d.ts
/packages/remark-lint-no-file-name-irregular-characters/*.d.ts
/packages/remark-lint-no-file-name-mixed-case/*.d.ts
/packages/remark-lint-no-file-name-outer-dashes/*.d.ts
/packages/remark-lint-no-heading-content-indent/*.d.ts
/packages/remark-lint-no-heading-indent/*.d.ts
/packages/remark-lint-no-heading-like-paragraph/*.d.ts
/packages/remark-lint-no-heading-punctuation/*.d.ts
/packages/remark-lint-no-html/*.d.ts
/packages/remark-lint-no-inline-padding/*.d.ts
/packages/remark-lint-no-literal-urls/*.d.ts
/packages/remark-lint-no-missing-blank-lines/*.d.ts
/packages/remark-lint-no-multiple-toplevel-headings/*.d.ts
/packages/remark-lint-no-paragraph-content-indent/*.d.ts
/packages/remark-lint-no-reference-like-url/*.d.ts
/packages/remark-lint-no-shell-dollars/*.d.ts
/packages/remark-lint-no-shortcut-reference-image/*.d.ts
/packages/remark-lint-no-shortcut-reference-link/*.d.ts
/packages/remark-lint-no-table-indentation/*.d.ts
/packages/remark-lint-no-tabs/*.d.ts
/packages/remark-lint-no-undefined-references/*.d.ts
/packages/remark-lint-no-unneeded-full-reference-image/*.d.ts
/packages/remark-lint-no-unneeded-full-reference-link/*.d.ts
/packages/remark-lint-no-unused-definitions/*.d.ts
/packages/remark-lint-ordered-list-marker-style/*.d.ts
/packages/remark-lint-ordered-list-marker-value/*.d.ts
/packages/remark-lint-rule-style/*.d.ts
/packages/remark-lint-strikethrough-marker/*.d.ts
/packages/remark-lint-strong-marker/*.d.ts
/packages/remark-lint-table-cell-padding/*.d.ts
/packages/remark-lint-table-pipe-alignment/*.d.ts
/packages/remark-lint-table-pipes/*.d.ts
/packages/remark-lint-unordered-list-marker-style/*.d.ts
/packages/remark-preset-lint-consistent/*.d.ts
/packages/remark-preset-lint-markdown-style-guide/*.d.ts
/packages/remark-preset-lint-recommended/*.d.ts
/packages/unified-lint-rule/lib/*.d.ts
/script/**/*.d.ts
/*.d.ts
*.d.ts
*.log
package-lock.json
yarn.lock
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@
"remark-github": "^11.0.0",
"remark-toc": "^8.0.0",
"remark-validate-links": "^12.0.0",
"rimraf": "^3.0.0",
"strip-indent": "^4.0.0",
"tape": "^5.0.0",
"to-vfile": "^7.0.0",
Expand All @@ -139,10 +138,10 @@
"xo": "^0.54.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build-packages": "node script/build-presets && node script/build-rules",
"build-workspace": "npm run build --workspaces",
"build-monorepo": "rimraf \"test.d.ts\" \"script/**/*.d.ts\" && tsc && type-coverage",
"build": "npm run build-packages && npm run build-workspace && npm run build-monorepo",
"build-monorepo": "tsc --build --clean && tsc --build && type-coverage",
"build": "npm run build-packages && npm run build-monorepo",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
Expand Down
4 changes: 1 addition & 3 deletions packages/remark-lint-blockquote-indentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-blockquote-indentation/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-checkbox-character-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-checkbox-content-indent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"unist-util-visit": "^4.0.0",
"vfile-location": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-checkbox-content-indent/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-code-block-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-code-block-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-definition-case/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-definition-case/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-definition-spacing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-definition-spacing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-emphasis-marker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-emphasis-marker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-fenced-code-flag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-fenced-code-flag/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-fenced-code-marker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-fenced-code-marker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-file-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
"unified": "^10.0.0",
"unified-lint-rule": "^2.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-file-extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-final-definition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-final-definition/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-final-newline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
"unified": "^10.0.0",
"unified-lint-rule": "^2.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-final-newline/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-first-heading-level/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
"unist-util-generated": "^2.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-first-heading-level/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-hard-break-spaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"unist-util-position": "^4.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-hard-break-spaces/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-heading-increment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
"unist-util-generated": "^2.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-heading-increment/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-heading-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"unist-util-generated": "^2.0.0",
"unist-util-visit": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-heading-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
4 changes: 1 addition & 3 deletions packages/remark-lint-linebreak-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
"unified-lint-rule": "^2.0.0",
"vfile-location": "^4.0.0"
},
"scripts": {
"build": "rimraf \"*.d.ts\" && tsc && type-coverage"
},
"scripts": {},
"xo": false,
"typeCoverage": {
"atLeast": 100,
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-linebreak-style/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"references": [{"path": "../unified-lint-rule"}]
}
Loading

0 comments on commit 0beb67b

Please sign in to comment.