Skip to content

Commit

Permalink
Revert "Revert "chore: set up root tsconfig as "solution"" (#6747)"
Browse files Browse the repository at this point in the history
This reverts commit a4b3b07.
  • Loading branch information
AlCalzone committed Jul 5, 2024
1 parent 0ac8e0a commit 18a6a7a
Show file tree
Hide file tree
Showing 17 changed files with 84 additions and 40 deletions.
2 changes: 1 addition & 1 deletion packages/cc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"plugins": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/config/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["node", "@typescript-eslint/utils"]
},
Expand Down
2 changes: 1 addition & 1 deletion packages/flash/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/host/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/maintenance/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"newLine": "lf",
"resolveJsonModule": true
Expand Down
2 changes: 1 addition & 1 deletion packages/nvmedit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/serial/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [],
"include": ["src/**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion packages/testing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/transformers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"newLine": "lf",
"experimentalDecorators": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/zwave-js/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tsconfig for IntelliSense - active in all files in the current package
{
"extends": "../../tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"plugins": [
{
Expand Down
26 changes: 26 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"composite": true,
"incremental": true,
"declaration": true,
"declarationMap": true,

"noEmitOnError": true,
"removeComments": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": false,
"sourceMap": true,
"inlineSourceMap": false,
"stripInternal": true,

"pretty": true,
"types": ["node"],
"noErrorTruncation": true
}
// "include": [
// "maintenance/**/*.ts",
// "test/**/*.ts"
// ],
// "exclude": ["**/build/**", "node_modules/**", "./packages/**/node_modules"]
}
2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.base.json",
"include": ["**/*.ts"],
"exclude": ["**/build/**", "**/node_modules/**"]
}
69 changes: 43 additions & 26 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,45 @@
{
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"composite": true,
"incremental": true,
"declaration": true,
"declarationMap": true,

"noEmitOnError": true,
"removeComments": false,
"experimentalDecorators": true,
"emitDecoratorMetadata": false,
"sourceMap": true,
"inlineSourceMap": false,
"stripInternal": true,

"pretty": true,
"types": ["node"],
"noErrorTruncation": true
},
"include": [
"packages/**/src/**/*.ts",
"packages/**/maintenance/**/*.ts",
"maintenance/**/*.ts",
"test/**/*.ts"
],
"exclude": ["**/build/**", "node_modules/**", "packages/**/node_modules"]
"files": [],
"include": [],
"references": [
{
"path": "./packages/cc"
},
{
"path": "./packages/config"
},
{
"path": "./packages/core"
},
{
"path": "./packages/eslint-plugin"
},
{
"path": "./packages/flash"
},
{
"path": "./packages/host"
},
{
"path": "./packages/maintenance"
},
{
"path": "./packages/nvmedit"
},
{
"path": "./packages/serial"
},
{
"path": "./packages/shared"
},
{
"path": "./packages/testing"
},
{
"path": "./packages/transformers"
},
{
"path": "./packages/zwave-js"
}
]
}
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"yarn.lock",
// Build fresh when TS related stuff changes
"tsconfig.json",
"tsconfig.base.json",
"tsconfig.build.json"
]
}

0 comments on commit 18a6a7a

Please sign in to comment.