Skip to content

Commit

Permalink
Update tsconfig dependency (#192)
Browse files Browse the repository at this point in the history
**User-Facing Changes**
NA

**Description**
Updated tsconfig lib and code refactoring for that.


<!-- link relevant GitHub issues -->
<!-- add `docs` label if this PR requires documentation updates -->
<!-- add relevant metric tracking for experimental / new features -->

**Checklist**

- [x] The web version was tested and it is running ok
- [x] The desktop version was tested and it is running ok

Signed-off-by: Luiz Bezerra <[email protected]>
  • Loading branch information
luluiz authored Sep 25, 2024
1 parent 58b4506 commit 13c9686
Show file tree
Hide file tree
Showing 48 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../**/*.stories.*"],
"compilerOptions": {
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
},
"devDependencies": {
"@foxglove/schemas": "1.6.3",
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/den": "workspace:*",
"@lichtblick/log": "workspace:*",
"@lichtblick/rostime": "1.0.0",
"@lichtblick/suite": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@types/react": "18.2.56",
"@types/react-dom": "18.2.7",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*"],
"compilerOptions": {
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion benchmark/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["*.ts"],
"compilerOptions": {
"module": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion desktop/main/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../common/*", "../../package.json"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "desktop",
"private": true,
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@foxglove/ws-protocol": "0.7.4",
"@lichtblick/den": "workspace:*",
"@lichtblick/log": "workspace:*",
"@lichtblick/suite-base": "workspace:*",
"@lichtblick/suite-desktop": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@types/ws": "^8",
"electron": "25.8.4",
"playwright": "1.37.1",
Expand Down
2 changes: 1 addition & 1 deletion desktop/preload/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../common/*", "../../package.json"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion desktop/quicklook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion desktop/renderer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../common/**/*", "../../package.json"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion desktop/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["*.ts", "common/**/*", "integration-test/**/*.ts", "../package.json"],
"compilerOptions": {
"lib": ["dom", "es2022", "esnext.disposable"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
"@babel/plugin-proposal-explicit-resource-management": "7.24.7",
"@babel/preset-env": "7.25.3",
"@babel/preset-typescript": "7.24.7",
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/eslint-plugin": "1.0.1",
"@lichtblick/eslint-plugin-suite": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@octokit/rest": "20.0.2",
"@storybook/addon-actions": "7.6.10",
"@storybook/addon-essentials": "7.6.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/comlink-transfer-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepack": "tsc -b"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"comlink": "github:foxglove/comlink#9181fa505671b35b1e66e0a8361a6fc1bdd03307",
"typescript": "5.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/comlink-transfer-handlers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/den/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"xacro-parser": "0.3.9"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0"
"@lichtblick/tsconfig": "1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/den/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*"],
"compilerOptions": {
"rootDir": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-suite/fixture/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"compilerOptions": {
"lib": ["es2020", "dom"],
"noEmit": true
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-suite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"src"
],
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"@typescript-eslint/rule-tester": "6.10.0",
"@typescript-eslint/utils": "6.10.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-suite/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*.ts"],
"compilerOptions": {
"rootDir": ".",
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepack": "tsc -b"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"@testing-library/react": "16.0.0",
"@types/foxglove__web": "workspace:*",
"@types/lodash-es": "^4",
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"prepack": "tsc -b"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"typescript": "5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/log/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcap-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"prepack": "tsc -b"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"@types/protobufjs": "workspace:*",
"typescript": "5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/mcap-support/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/message-path/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"nearley": "2.20.1"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"@types/nearley": "2.11.5",
"typescript": "5.3.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/message-path/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"@foxglove/schemas": "1.6.3",
"@foxglove/theme": "workspace:*",
"@foxglove/three-text": "0.2.2",
"@foxglove/tsconfig": "2.0.0",
"@foxglove/typescript-transformers": "workspace:*",
"@foxglove/ws-protocol": "0.7.2",
"@foxglove/xmlrpc": "1.3.0",
Expand All @@ -48,6 +47,7 @@
"@lichtblick/rosmsg-msgs-common": "1.0.1",
"@lichtblick/rostime": "1.0.0",
"@lichtblick/suite": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@lichtblick/ulog": "1.0.0",
"@lichtblick/velodyne-cloud": "1.0.0",
"@lichtblick/wasm-bz2": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-base/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*", "./src/**/*.json", "../package.json"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"@foxglove/mcap-support": "workspace:*",
"@foxglove/rosbag": "0.4.1",
"@foxglove/theme": "workspace:*",
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/den": "workspace:*",
"@lichtblick/electron-socket": "1.0.0",
"@lichtblick/log": "workspace:*",
"@lichtblick/rostime": "1.0.0",
"@lichtblick/suite-base": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@mcap/core": "1.3.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@storybook/react": "7.6.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop/src/main/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../common/*", "../../package.json"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop/src/preload/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../common/*", "../../package.json"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop/src/quicklook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop/src/renderer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*", "../common/**/*", "../../package.json"],
"compilerOptions": {
"rootDir": "../../",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-desktop/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["**/*"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"devDependencies": {
"@fluentui/react-icons": "2.0.224",
"@foxglove/theme": "workspace:*",
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/log": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@mui/material": "5.13.5",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@storybook/react": "7.6.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite-web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["**/*"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
2 changes: 1 addition & 1 deletion packages/suite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepack": "tsc -b tsconfig.json"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"typescript": "5.3.3"
}
}
2 changes: 1 addition & 1 deletion packages/suite/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*"],
"compilerOptions": {
"composite": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@emotion/react": "11.13.0",
"@emotion/styled": "11.13.0",
"@fluentui/react-icons": "2.0.224",
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/tsconfig": "1.0.0",
"@mui/icons-material": "5.15.5",
"@mui/lab": "5.0.0-alpha.161",
"@mui/material": "5.13.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*", "./src/**/*.json", "../package.json"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"typescript": "5.3.3"
},
"devDependencies": {
"@foxglove/tsconfig": "2.0.0"
"@lichtblick/tsconfig": "1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/typescript-transformers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./src/**/*"],
"compilerOptions": {
"rootDir": "./src",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// More detailed discussion at:
// https://github.com/typescript-eslint/typescript-eslint/issues/1192#issuecomment-846491212
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["**/*", "**/.storybook/**/*"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Root tsconfig.json
// Do not "extend" from this file, use @foxglove/tsconfig/base instead.
// Do not "extend" from this file, use @lichtblick/tsconfig/base instead.
// Do not "include" files here if they are already included by another tsconfig.json.
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": [
"./*.ts",
"./*.js",
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "web",
"private": true,
"devDependencies": {
"@foxglove/tsconfig": "2.0.0",
"@lichtblick/log": "workspace:*",
"@lichtblick/suite-web": "workspace:*",
"@lichtblick/tsconfig": "1.0.0",
"@types/serve-handler": "^6",
"playwright": "1.37.1",
"serve-handler": "6.1.5",
Expand Down
2 changes: 1 addition & 1 deletion web/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["./**/*"],
"compilerOptions": {
"noEmit": true,
Expand Down
2 changes: 1 addition & 1 deletion web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@foxglove/tsconfig/base",
"extends": "@lichtblick/tsconfig/base",
"include": ["**/*"],
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
Loading

0 comments on commit 13c9686

Please sign in to comment.