Skip to content

Commit

Permalink
use incremental + composite
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jul 1, 2024
1 parent 3fe623a commit 47b8b49
Show file tree
Hide file tree
Showing 35 changed files with 26 additions and 63 deletions.
2 changes: 0 additions & 2 deletions packages/create-docusaurus/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"composite": true,
"incremental": true,
"tsBuildInfoFile": "lib/.tsbuildinfo-build"
},
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/create-docusaurus/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"noEmit": true,
"rootDir": "."
},
"include": ["bin"],
"include": ["package.json", "bin"],
"exclude": ["**/__tests__/**"]
}
3 changes: 1 addition & 2 deletions packages/docusaurus-cssnano-preset/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus-logger/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true,
"sourceMap": true,
"declarationMap": true
},
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-mdx-loader/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true,
"sourceMap": true,
"declarationMap": true
},
"include": ["src"],
"include": ["package.json", "src"],
"exclude": ["**/__tests__/**"]
}
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-client-redirects/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-content-blog/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/client", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-content-docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/client", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-content-pages/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-debug/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/theme", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-google-analytics/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/analytics.ts", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-google-gtag/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/gtag.ts", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-google-tag-manager/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-ideal-image/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/theme", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-pwa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
{"path": "./tsconfig.worker.json"}
],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": [
Expand Down
2 changes: 0 additions & 2 deletions packages/docusaurus-plugin-pwa/tsconfig.worker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"composite": true,
"incremental": true,
"lib": ["webworker", "esnext"],
"tsBuildInfoFile": "lib/.tsbuildinfo-worker",
"moduleResolution": "bundler",
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-sitemap/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-vercel-analytics/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/analytics.ts", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-preset-classic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus-remark-plugin-npm2yarn/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true,
"sourceMap": true,
"declarationMap": true
},
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-theme-classic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": [
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-theme-live-codeblock/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/custom-buble.ts", "src/theme", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-theme-mermaid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/client", "src/theme", "**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-theme-search-algolia/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.base.json",
"references": [{"path": "./tsconfig.client.json"}],
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["src/client", "src/theme", "**/__tests__/**"]
Expand Down
2 changes: 0 additions & 2 deletions packages/docusaurus-theme-translations/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"compilerOptions": {
"tsBuildInfoFile": "${configDir}/lib/.tsbuildinfo-build",
"noEmit": false,
"composite": true,
"incremental": true,
"sourceMap": true,
"declarationMap": true
},
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus-utils-common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true,
"sourceMap": true,
"declarationMap": true,
"noEmitHelpers": false
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus-utils-validation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true,
"sourceMap": true,
"declarationMap": true
},
Expand Down
1 change: 0 additions & 1 deletion packages/docusaurus-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true,
"sourceMap": true,
"declarationMap": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"checkJs": true,
"rootDir": "."
},
"include": ["bin"],
"include": ["package.json", "bin"],
"exclude": ["**/__tests__/**"]
}
2 changes: 0 additions & 2 deletions packages/docusaurus/tsconfig.server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"composite": true,
"incremental": true,
"tsBuildInfoFile": "${configDir}/lib/.tsbuildinfo-server"
},
"include": ["src"],
Expand Down
3 changes: 1 addition & 2 deletions packages/eslint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/lqip-loader/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
3 changes: 1 addition & 2 deletions packages/stylelint-copyright/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"incremental": true
"noEmit": false
},
"include": ["src"],
"exclude": ["**/__tests__/**"]
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.base.client.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"compilerOptions": {
"tsBuildInfoFile": "${configDir}/lib/.tsbuildinfo-client",
"noEmit": false,
"composite": true,
"incremental": true,
"moduleResolution": "bundler",
"module": "esnext",
"target": "esnext"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
// Base dirs
"rootDir": "${configDir}/src",
"outDir": "${configDir}/lib",
"tsBuildInfoFile": "${configDir}/lib/.tsbuildinfo",
"composite": true,
"incremental": true,
"tsBuildInfoFile": "${configDir}/lib/.tsbuildinfo",

/* Emit */
"target": "ES2020",
Expand Down

0 comments on commit 47b8b49

Please sign in to comment.