From 5161502c62ced82d2ee646ebe06d021df5a7422e Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 25 Sep 2025 14:30:31 +0200 Subject: [PATCH 1/4] chore: remove unused allowJs from tsconfig, remove unparseable comment --- configs/testing-library-compass/tsconfig.json | 1 - packages/compass-field-store/tsconfig-lint.json | 1 - 2 files changed, 2 deletions(-) diff --git a/configs/testing-library-compass/tsconfig.json b/configs/testing-library-compass/tsconfig.json index 053993e2d48..a6246f44900 100644 --- a/configs/testing-library-compass/tsconfig.json +++ b/configs/testing-library-compass/tsconfig.json @@ -2,7 +2,6 @@ "extends": "@mongodb-js/tsconfig-compass/tsconfig.react.json", "compilerOptions": { "outDir": "dist", - // Because of the recursive deps "skipLibCheck": true }, "include": ["src/**/*"], diff --git a/packages/compass-field-store/tsconfig-lint.json b/packages/compass-field-store/tsconfig-lint.json index 6655673188c..6bdef84f322 100644 --- a/packages/compass-field-store/tsconfig-lint.json +++ b/packages/compass-field-store/tsconfig-lint.json @@ -1,5 +1,4 @@ { - "compilerOptions": { "allowJs": true }, "extends": "./tsconfig.json", "include": ["**/*"], "exclude": ["node_modules", "dist"] From 1ee04a570d04813f1e6578661b91d3bac457ddea Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 25 Sep 2025 15:51:26 +0200 Subject: [PATCH 2/4] chore: run script that swaps tsconfig lint with default (build) tsconfig --- configs/testing-library-compass/.eslintrc.js | 2 +- configs/testing-library-compass/package.json | 4 ++-- configs/testing-library-compass/tsconfig-build.json | 5 +++++ configs/testing-library-compass/tsconfig-lint.json | 5 ----- configs/testing-library-compass/tsconfig.json | 4 ++-- configs/webpack-config-compass/.eslintrc.js | 2 +- configs/webpack-config-compass/package.json | 4 ++-- configs/webpack-config-compass/tsconfig-build.json | 5 +++++ configs/webpack-config-compass/tsconfig-lint.json | 5 ----- configs/webpack-config-compass/tsconfig.json | 4 ++-- packages/atlas-service/.eslintrc.js | 2 +- packages/atlas-service/package.json | 4 ++-- packages/atlas-service/tsconfig-build.json | 5 +++++ packages/atlas-service/tsconfig-lint.json | 5 ----- packages/atlas-service/tsconfig.json | 4 ++-- packages/compass-aggregations/.eslintrc.js | 2 +- packages/compass-aggregations/package.json | 4 ++-- packages/compass-aggregations/tsconfig-build.json | 5 +++++ packages/compass-aggregations/tsconfig-lint.json | 5 ----- packages/compass-aggregations/tsconfig.json | 4 ++-- packages/compass-app-registry/.eslintrc.js | 2 +- packages/compass-app-registry/package.json | 4 ++-- packages/compass-app-registry/tsconfig-build.json | 5 +++++ packages/compass-app-registry/tsconfig-lint.json | 5 ----- packages/compass-app-registry/tsconfig.json | 4 ++-- packages/compass-app-stores/.eslintrc.js | 2 +- packages/compass-app-stores/package.json | 4 ++-- packages/compass-app-stores/tsconfig-build.json | 5 +++++ packages/compass-app-stores/tsconfig-lint.json | 5 ----- packages/compass-app-stores/tsconfig.json | 4 ++-- packages/compass-assistant/.eslintrc.js | 2 +- packages/compass-assistant/package.json | 4 ++-- packages/compass-assistant/tsconfig-build.json | 5 +++++ packages/compass-assistant/tsconfig-lint.json | 5 ----- packages/compass-assistant/tsconfig.json | 4 ++-- packages/compass-collection/.eslintrc.js | 2 +- packages/compass-collection/package.json | 4 ++-- packages/compass-collection/tsconfig-build.json | 5 +++++ packages/compass-collection/tsconfig-lint.json | 5 ----- packages/compass-collection/tsconfig.json | 4 ++-- packages/compass-components/.eslintrc.js | 2 +- packages/compass-components/package.json | 4 ++-- packages/compass-components/tsconfig-build.json | 5 +++++ packages/compass-components/tsconfig-lint.json | 5 ----- packages/compass-components/tsconfig.json | 4 ++-- .../compass-connection-import-export/.eslintrc.js | 2 +- .../compass-connection-import-export/package.json | 4 ++-- .../tsconfig-build.json | 5 +++++ .../tsconfig-lint.json | 5 ----- .../compass-connection-import-export/tsconfig.json | 4 ++-- packages/compass-connections-navigation/.eslintrc.js | 2 +- packages/compass-connections-navigation/package.json | 4 ++-- .../tsconfig-build.json | 5 +++++ .../compass-connections-navigation/tsconfig-lint.json | 5 ----- packages/compass-connections-navigation/tsconfig.json | 4 ++-- packages/compass-connections/.eslintrc.js | 2 +- packages/compass-connections/package.json | 7 ++++--- packages/compass-connections/tsconfig-build.json | 5 +++++ packages/compass-connections/tsconfig-lint.json | 5 ----- packages/compass-connections/tsconfig.json | 4 ++-- packages/compass-context-menu/.eslintrc.js | 2 +- packages/compass-context-menu/package.json | 4 ++-- packages/compass-context-menu/tsconfig-build.json | 5 +++++ packages/compass-context-menu/tsconfig-lint.json | 5 ----- packages/compass-context-menu/tsconfig.json | 4 ++-- packages/compass-crud/.eslintrc.js | 2 +- packages/compass-crud/package.json | 4 ++-- packages/compass-crud/tsconfig-build.json | 5 +++++ packages/compass-crud/tsconfig-lint.json | 5 ----- packages/compass-crud/tsconfig.json | 4 ++-- packages/compass-data-modeling/.eslintrc.js | 2 +- packages/compass-data-modeling/package.json | 4 ++-- packages/compass-data-modeling/tsconfig-build.json | 5 +++++ packages/compass-data-modeling/tsconfig-lint.json | 5 ----- packages/compass-data-modeling/tsconfig.json | 4 ++-- packages/compass-e2e-tests/package.json | 4 ++-- packages/compass-editor/.eslintrc.js | 2 +- packages/compass-editor/package.json | 4 ++-- packages/compass-editor/tsconfig-build.json | 5 +++++ packages/compass-editor/tsconfig-lint.json | 5 ----- packages/compass-editor/tsconfig.json | 4 ++-- packages/compass-explain-plan/.eslintrc.js | 2 +- packages/compass-explain-plan/package.json | 4 ++-- packages/compass-explain-plan/tsconfig-build.json | 5 +++++ packages/compass-explain-plan/tsconfig-lint.json | 5 ----- packages/compass-explain-plan/tsconfig.json | 4 ++-- packages/compass-export-to-language/.eslintrc.js | 2 +- packages/compass-export-to-language/package.json | 4 ++-- .../compass-export-to-language/tsconfig-build.json | 5 +++++ .../compass-export-to-language/tsconfig-lint.json | 5 ----- packages/compass-export-to-language/tsconfig.json | 4 ++-- packages/compass-field-store/.eslintrc.js | 2 +- packages/compass-field-store/package.json | 4 ++-- packages/compass-field-store/tsconfig-build.json | 5 +++++ packages/compass-field-store/tsconfig-lint.json | 5 ----- packages/compass-field-store/tsconfig.json | 4 ++-- packages/compass-find-in-page/.eslintrc.js | 2 +- packages/compass-find-in-page/package.json | 4 ++-- packages/compass-find-in-page/tsconfig-build.json | 5 +++++ packages/compass-find-in-page/tsconfig-lint.json | 5 ----- packages/compass-find-in-page/tsconfig.json | 4 ++-- packages/compass-generative-ai/.eslintrc.js | 2 +- packages/compass-generative-ai/package.json | 4 ++-- packages/compass-generative-ai/tsconfig-build.json | 5 +++++ packages/compass-generative-ai/tsconfig-lint.json | 5 ----- packages/compass-generative-ai/tsconfig.json | 4 ++-- packages/compass-global-writes/.eslintrc.js | 2 +- packages/compass-global-writes/package.json | 4 ++-- packages/compass-global-writes/tsconfig-build.json | 5 +++++ packages/compass-global-writes/tsconfig-lint.json | 5 ----- packages/compass-global-writes/tsconfig.json | 4 ++-- packages/compass-import-export/.eslintrc.js | 2 +- packages/compass-import-export/package.json | 4 ++-- packages/compass-import-export/tsconfig-build.json | 5 +++++ packages/compass-import-export/tsconfig-lint.json | 5 ----- packages/compass-import-export/tsconfig.json | 4 ++-- packages/compass-indexes/.eslintrc.js | 2 +- packages/compass-indexes/package.json | 4 ++-- packages/compass-indexes/tsconfig-build.json | 5 +++++ packages/compass-indexes/tsconfig-lint.json | 5 ----- packages/compass-indexes/tsconfig.json | 4 ++-- packages/compass-intercom/.eslintrc.js | 2 +- packages/compass-intercom/package.json | 4 ++-- packages/compass-intercom/tsconfig-build.json | 5 +++++ packages/compass-intercom/tsconfig-lint.json | 5 ----- packages/compass-intercom/tsconfig.json | 4 ++-- packages/compass-logging/.eslintrc.js | 2 +- packages/compass-logging/package.json | 4 ++-- packages/compass-logging/tsconfig-build.json | 5 +++++ packages/compass-logging/tsconfig-lint.json | 5 ----- packages/compass-logging/tsconfig.json | 4 ++-- .../.eslintrc.js | 2 +- .../package.json | 4 ++-- .../tsconfig-build.json | 5 +++++ .../tsconfig-lint.json | 5 ----- .../tsconfig.json | 4 ++-- packages/compass-preferences-model/.eslintrc.js | 2 +- packages/compass-preferences-model/package.json | 7 ++++--- .../compass-preferences-model/tsconfig-build.json | 5 +++++ packages/compass-preferences-model/tsconfig-lint.json | 5 ----- packages/compass-preferences-model/tsconfig.json | 4 ++-- packages/compass-query-bar/.eslintrc.js | 2 +- packages/compass-query-bar/package.json | 4 ++-- packages/compass-query-bar/tsconfig-build.json | 5 +++++ packages/compass-query-bar/tsconfig-lint.json | 5 ----- packages/compass-query-bar/tsconfig.json | 4 ++-- .../compass-saved-aggregations-queries/.eslintrc.js | 2 +- .../compass-saved-aggregations-queries/package.json | 4 ++-- .../tsconfig-build.json | 5 +++++ .../tsconfig-lint.json | 5 ----- .../compass-saved-aggregations-queries/tsconfig.json | 4 ++-- packages/compass-schema-validation/.eslintrc.js | 2 +- packages/compass-schema-validation/package.json | 4 ++-- .../compass-schema-validation/tsconfig-build.json | 5 +++++ packages/compass-schema-validation/tsconfig-lint.json | 5 ----- packages/compass-schema-validation/tsconfig.json | 4 ++-- packages/compass-schema/.eslintrc.js | 2 +- packages/compass-schema/package.json | 4 ++-- packages/compass-schema/tsconfig-build.json | 5 +++++ packages/compass-schema/tsconfig-lint.json | 5 ----- packages/compass-schema/tsconfig.json | 4 ++-- packages/compass-serverstats/.eslintrc.js | 2 +- packages/compass-serverstats/package.json | 4 ++-- packages/compass-serverstats/tsconfig-build.json | 5 +++++ packages/compass-serverstats/tsconfig-lint.json | 5 ----- packages/compass-serverstats/tsconfig.json | 4 ++-- packages/compass-settings/.eslintrc.js | 2 +- packages/compass-settings/package.json | 4 ++-- packages/compass-settings/tsconfig-build.json | 5 +++++ packages/compass-settings/tsconfig-lint.json | 5 ----- packages/compass-settings/tsconfig.json | 4 ++-- packages/compass-shell/.eslintrc.js | 2 +- packages/compass-shell/package.json | 4 ++-- packages/compass-shell/tsconfig-build.json | 5 +++++ packages/compass-shell/tsconfig-lint.json | 5 ----- packages/compass-shell/tsconfig.json | 4 ++-- packages/compass-sidebar/.eslintrc.js | 2 +- packages/compass-sidebar/package.json | 4 ++-- packages/compass-sidebar/tsconfig-build.json | 5 +++++ packages/compass-sidebar/tsconfig-lint.json | 5 ----- packages/compass-sidebar/tsconfig.json | 4 ++-- packages/compass-smoke-tests/package.json | 2 +- packages/compass-telemetry/.eslintrc.js | 2 +- packages/compass-telemetry/package.json | 4 ++-- packages/compass-telemetry/tsconfig-build.json | 5 +++++ packages/compass-telemetry/tsconfig-lint.json | 5 ----- packages/compass-telemetry/tsconfig.json | 4 ++-- packages/compass-test-server/.eslintrc.js | 2 +- packages/compass-test-server/package.json | 4 ++-- packages/compass-test-server/tsconfig-build.json | 5 +++++ packages/compass-test-server/tsconfig-lint.json | 5 ----- packages/compass-test-server/tsconfig.json | 4 ++-- packages/compass-user-data/.eslintrc.js | 2 +- packages/compass-user-data/package.json | 4 ++-- packages/compass-user-data/tsconfig-build.json | 5 +++++ packages/compass-user-data/tsconfig-lint.json | 5 ----- packages/compass-user-data/tsconfig.json | 4 ++-- packages/compass-utils/.eslintrc.js | 2 +- packages/compass-utils/package.json | 4 ++-- packages/compass-utils/tsconfig-build.json | 5 +++++ packages/compass-utils/tsconfig-lint.json | 5 ----- packages/compass-utils/tsconfig.json | 4 ++-- packages/compass-web/.eslintrc.js | 2 +- packages/compass-web/package.json | 2 +- packages/compass-web/tsconfig-build.json | 3 --- packages/compass-web/tsconfig-lint.json | 5 ----- packages/compass-web/tsconfig.json | 11 ++--------- packages/compass-welcome/.eslintrc.js | 2 +- packages/compass-welcome/package.json | 4 ++-- packages/compass-welcome/tsconfig-build.json | 5 +++++ packages/compass-welcome/tsconfig-lint.json | 5 ----- packages/compass-welcome/tsconfig.json | 4 ++-- packages/compass-workspaces/.eslintrc.js | 2 +- packages/compass-workspaces/package.json | 4 ++-- packages/compass-workspaces/tsconfig-build.json | 5 +++++ packages/compass-workspaces/tsconfig-lint.json | 5 ----- packages/compass-workspaces/tsconfig.json | 4 ++-- packages/compass/.eslintrc.js | 2 +- packages/compass/package.json | 2 +- packages/compass/tsconfig-lint.json | 5 ----- packages/compass/tsconfig.json | 5 ++--- packages/connection-form/.eslintrc.js | 2 +- packages/connection-form/package.json | 4 ++-- packages/connection-form/tsconfig-build.json | 5 +++++ packages/connection-form/tsconfig-lint.json | 5 ----- packages/connection-form/tsconfig.json | 4 ++-- packages/connection-info/.eslintrc.js | 2 +- packages/connection-info/package.json | 4 ++-- packages/connection-info/tsconfig-build.json | 5 +++++ packages/connection-info/tsconfig-lint.json | 5 ----- packages/connection-info/tsconfig.json | 4 ++-- packages/connection-storage/.eslintrc.js | 2 +- packages/connection-storage/package.json | 4 ++-- packages/connection-storage/tsconfig-build.json | 5 +++++ packages/connection-storage/tsconfig-lint.json | 5 ----- packages/connection-storage/tsconfig.json | 4 ++-- packages/data-service/.eslintrc.js | 2 +- packages/data-service/package.json | 7 ++++--- packages/data-service/tsconfig-build.json | 5 +++++ packages/data-service/tsconfig-lint.json | 5 ----- packages/data-service/tsconfig.json | 4 ++-- packages/databases-collections-list/.eslintrc.js | 2 +- packages/databases-collections-list/package.json | 4 ++-- .../databases-collections-list/tsconfig-build.json | 5 +++++ .../databases-collections-list/tsconfig-lint.json | 5 ----- packages/databases-collections-list/tsconfig.json | 4 ++-- packages/databases-collections/.eslintrc.js | 2 +- packages/databases-collections/package.json | 4 ++-- packages/databases-collections/tsconfig-build.json | 5 +++++ packages/databases-collections/tsconfig-lint.json | 5 ----- packages/databases-collections/tsconfig.json | 4 ++-- packages/explain-plan-helper/.eslintrc.js | 2 +- packages/explain-plan-helper/package.json | 4 ++-- packages/explain-plan-helper/tsconfig-build.json | 5 +++++ packages/explain-plan-helper/tsconfig-lint.json | 5 ----- packages/explain-plan-helper/tsconfig.json | 4 ++-- packages/hadron-document/.eslintrc.js | 2 +- packages/hadron-document/package.json | 7 ++++--- packages/hadron-document/tsconfig-build.json | 5 +++++ packages/hadron-document/tsconfig-lint.json | 5 ----- packages/hadron-document/tsconfig.json | 4 ++-- packages/hadron-ipc/.eslintrc.js | 2 +- packages/hadron-ipc/package.json | 4 ++-- packages/hadron-ipc/tsconfig-build.json | 5 +++++ packages/hadron-ipc/tsconfig-lint.json | 5 ----- packages/hadron-ipc/tsconfig.json | 4 ++-- packages/mongodb-query-util/.eslintrc.js | 2 +- packages/mongodb-query-util/package.json | 4 ++-- packages/mongodb-query-util/tsconfig-build.json | 5 +++++ packages/mongodb-query-util/tsconfig-lint.json | 5 ----- packages/mongodb-query-util/tsconfig.json | 4 ++-- packages/my-queries-storage/.eslintrc.js | 2 +- packages/my-queries-storage/package.json | 4 ++-- packages/my-queries-storage/tsconfig-build.json | 5 +++++ packages/my-queries-storage/tsconfig-lint.json | 5 ----- packages/my-queries-storage/tsconfig.json | 4 ++-- packages/reflux-state-mixin/.eslintrc.js | 2 +- packages/reflux-state-mixin/package.json | 4 ++-- packages/reflux-state-mixin/tsconfig-build.json | 5 +++++ packages/reflux-state-mixin/tsconfig-lint.json | 5 ----- packages/reflux-state-mixin/tsconfig.json | 4 ++-- 281 files changed, 559 insertions(+), 576 deletions(-) create mode 100644 configs/testing-library-compass/tsconfig-build.json delete mode 100644 configs/testing-library-compass/tsconfig-lint.json create mode 100644 configs/webpack-config-compass/tsconfig-build.json delete mode 100644 configs/webpack-config-compass/tsconfig-lint.json create mode 100644 packages/atlas-service/tsconfig-build.json delete mode 100644 packages/atlas-service/tsconfig-lint.json create mode 100644 packages/compass-aggregations/tsconfig-build.json delete mode 100644 packages/compass-aggregations/tsconfig-lint.json create mode 100644 packages/compass-app-registry/tsconfig-build.json delete mode 100644 packages/compass-app-registry/tsconfig-lint.json create mode 100644 packages/compass-app-stores/tsconfig-build.json delete mode 100644 packages/compass-app-stores/tsconfig-lint.json create mode 100644 packages/compass-assistant/tsconfig-build.json delete mode 100644 packages/compass-assistant/tsconfig-lint.json create mode 100644 packages/compass-collection/tsconfig-build.json delete mode 100644 packages/compass-collection/tsconfig-lint.json create mode 100644 packages/compass-components/tsconfig-build.json delete mode 100644 packages/compass-components/tsconfig-lint.json create mode 100644 packages/compass-connection-import-export/tsconfig-build.json delete mode 100644 packages/compass-connection-import-export/tsconfig-lint.json create mode 100644 packages/compass-connections-navigation/tsconfig-build.json delete mode 100644 packages/compass-connections-navigation/tsconfig-lint.json create mode 100644 packages/compass-connections/tsconfig-build.json delete mode 100644 packages/compass-connections/tsconfig-lint.json create mode 100644 packages/compass-context-menu/tsconfig-build.json delete mode 100644 packages/compass-context-menu/tsconfig-lint.json create mode 100644 packages/compass-crud/tsconfig-build.json delete mode 100644 packages/compass-crud/tsconfig-lint.json create mode 100644 packages/compass-data-modeling/tsconfig-build.json delete mode 100644 packages/compass-data-modeling/tsconfig-lint.json create mode 100644 packages/compass-editor/tsconfig-build.json delete mode 100644 packages/compass-editor/tsconfig-lint.json create mode 100644 packages/compass-explain-plan/tsconfig-build.json delete mode 100644 packages/compass-explain-plan/tsconfig-lint.json create mode 100644 packages/compass-export-to-language/tsconfig-build.json delete mode 100644 packages/compass-export-to-language/tsconfig-lint.json create mode 100644 packages/compass-field-store/tsconfig-build.json delete mode 100644 packages/compass-field-store/tsconfig-lint.json create mode 100644 packages/compass-find-in-page/tsconfig-build.json delete mode 100644 packages/compass-find-in-page/tsconfig-lint.json create mode 100644 packages/compass-generative-ai/tsconfig-build.json delete mode 100644 packages/compass-generative-ai/tsconfig-lint.json create mode 100644 packages/compass-global-writes/tsconfig-build.json delete mode 100644 packages/compass-global-writes/tsconfig-lint.json create mode 100644 packages/compass-import-export/tsconfig-build.json delete mode 100644 packages/compass-import-export/tsconfig-lint.json create mode 100644 packages/compass-indexes/tsconfig-build.json delete mode 100644 packages/compass-indexes/tsconfig-lint.json create mode 100644 packages/compass-intercom/tsconfig-build.json delete mode 100644 packages/compass-intercom/tsconfig-lint.json create mode 100644 packages/compass-logging/tsconfig-build.json delete mode 100644 packages/compass-logging/tsconfig-lint.json create mode 100644 packages/compass-maybe-protect-connection-string/tsconfig-build.json delete mode 100644 packages/compass-maybe-protect-connection-string/tsconfig-lint.json create mode 100644 packages/compass-preferences-model/tsconfig-build.json delete mode 100644 packages/compass-preferences-model/tsconfig-lint.json create mode 100644 packages/compass-query-bar/tsconfig-build.json delete mode 100644 packages/compass-query-bar/tsconfig-lint.json create mode 100644 packages/compass-saved-aggregations-queries/tsconfig-build.json delete mode 100644 packages/compass-saved-aggregations-queries/tsconfig-lint.json create mode 100644 packages/compass-schema-validation/tsconfig-build.json delete mode 100644 packages/compass-schema-validation/tsconfig-lint.json create mode 100644 packages/compass-schema/tsconfig-build.json delete mode 100644 packages/compass-schema/tsconfig-lint.json create mode 100644 packages/compass-serverstats/tsconfig-build.json delete mode 100644 packages/compass-serverstats/tsconfig-lint.json create mode 100644 packages/compass-settings/tsconfig-build.json delete mode 100644 packages/compass-settings/tsconfig-lint.json create mode 100644 packages/compass-shell/tsconfig-build.json delete mode 100644 packages/compass-shell/tsconfig-lint.json create mode 100644 packages/compass-sidebar/tsconfig-build.json delete mode 100644 packages/compass-sidebar/tsconfig-lint.json create mode 100644 packages/compass-telemetry/tsconfig-build.json delete mode 100644 packages/compass-telemetry/tsconfig-lint.json create mode 100644 packages/compass-test-server/tsconfig-build.json delete mode 100644 packages/compass-test-server/tsconfig-lint.json create mode 100644 packages/compass-user-data/tsconfig-build.json delete mode 100644 packages/compass-user-data/tsconfig-lint.json create mode 100644 packages/compass-utils/tsconfig-build.json delete mode 100644 packages/compass-utils/tsconfig-lint.json delete mode 100644 packages/compass-web/tsconfig-lint.json create mode 100644 packages/compass-welcome/tsconfig-build.json delete mode 100644 packages/compass-welcome/tsconfig-lint.json create mode 100644 packages/compass-workspaces/tsconfig-build.json delete mode 100644 packages/compass-workspaces/tsconfig-lint.json delete mode 100644 packages/compass/tsconfig-lint.json create mode 100644 packages/connection-form/tsconfig-build.json delete mode 100644 packages/connection-form/tsconfig-lint.json create mode 100644 packages/connection-info/tsconfig-build.json delete mode 100644 packages/connection-info/tsconfig-lint.json create mode 100644 packages/connection-storage/tsconfig-build.json delete mode 100644 packages/connection-storage/tsconfig-lint.json create mode 100644 packages/data-service/tsconfig-build.json delete mode 100644 packages/data-service/tsconfig-lint.json create mode 100644 packages/databases-collections-list/tsconfig-build.json delete mode 100644 packages/databases-collections-list/tsconfig-lint.json create mode 100644 packages/databases-collections/tsconfig-build.json delete mode 100644 packages/databases-collections/tsconfig-lint.json create mode 100644 packages/explain-plan-helper/tsconfig-build.json delete mode 100644 packages/explain-plan-helper/tsconfig-lint.json create mode 100644 packages/hadron-document/tsconfig-build.json delete mode 100644 packages/hadron-document/tsconfig-lint.json create mode 100644 packages/hadron-ipc/tsconfig-build.json delete mode 100644 packages/hadron-ipc/tsconfig-lint.json create mode 100644 packages/mongodb-query-util/tsconfig-build.json delete mode 100644 packages/mongodb-query-util/tsconfig-lint.json create mode 100644 packages/my-queries-storage/tsconfig-build.json delete mode 100644 packages/my-queries-storage/tsconfig-lint.json create mode 100644 packages/reflux-state-mixin/tsconfig-build.json delete mode 100644 packages/reflux-state-mixin/tsconfig-lint.json diff --git a/configs/testing-library-compass/.eslintrc.js b/configs/testing-library-compass/.eslintrc.js index e4cf824b6ac..a812ac46f5d 100644 --- a/configs/testing-library-compass/.eslintrc.js +++ b/configs/testing-library-compass/.eslintrc.js @@ -3,6 +3,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/configs/testing-library-compass/package.json b/configs/testing-library-compass/package.json index 8c3f58ef60a..22cc2cf5001 100644 --- a/configs/testing-library-compass/package.json +++ b/configs/testing-library-compass/package.json @@ -30,8 +30,8 @@ }, "types": "./dist/index.d.ts", "scripts": { - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/configs/testing-library-compass/tsconfig-build.json b/configs/testing-library-compass/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/configs/testing-library-compass/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/configs/testing-library-compass/tsconfig-lint.json b/configs/testing-library-compass/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/configs/testing-library-compass/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/configs/testing-library-compass/tsconfig.json b/configs/testing-library-compass/tsconfig.json index a6246f44900..16c6fc189ec 100644 --- a/configs/testing-library-compass/tsconfig.json +++ b/configs/testing-library-compass/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/configs/webpack-config-compass/.eslintrc.js b/configs/webpack-config-compass/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/configs/webpack-config-compass/.eslintrc.js +++ b/configs/webpack-config-compass/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/configs/webpack-config-compass/package.json b/configs/webpack-config-compass/package.json index aacb5ff3670..13d39816010 100644 --- a/configs/webpack-config-compass/package.json +++ b/configs/webpack-config-compass/package.json @@ -34,9 +34,9 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "postcompile": "gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/configs/webpack-config-compass/tsconfig-build.json b/configs/webpack-config-compass/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/configs/webpack-config-compass/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/configs/webpack-config-compass/tsconfig-lint.json b/configs/webpack-config-compass/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/configs/webpack-config-compass/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/configs/webpack-config-compass/tsconfig.json b/configs/webpack-config-compass/tsconfig.json index 9ccaa9c77db..5cb02e666d7 100644 --- a/configs/webpack-config-compass/tsconfig.json +++ b/configs/webpack-config-compass/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "lib": ["ES2020"] }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/atlas-service/.eslintrc.js b/packages/atlas-service/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/atlas-service/.eslintrc.js +++ b/packages/atlas-service/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/atlas-service/package.json b/packages/atlas-service/package.json index 450bc069a99..672a987dc9a 100644 --- a/packages/atlas-service/package.json +++ b/packages/atlas-service/package.json @@ -40,8 +40,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/atlas-service/tsconfig-build.json b/packages/atlas-service/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/atlas-service/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/atlas-service/tsconfig-lint.json b/packages/atlas-service/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/atlas-service/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/atlas-service/tsconfig.json b/packages/atlas-service/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/atlas-service/tsconfig.json +++ b/packages/atlas-service/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-aggregations/.eslintrc.js b/packages/compass-aggregations/.eslintrc.js index 96c534ab2ea..52b51dc8e58 100644 --- a/packages/compass-aggregations/.eslintrc.js +++ b/packages/compass-aggregations/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, env: { node: true, diff --git a/packages/compass-aggregations/package.json b/packages/compass-aggregations/package.json index aeff486acba..b9a4a4428d7 100644 --- a/packages/compass-aggregations/package.json +++ b/packages/compass-aggregations/package.json @@ -14,8 +14,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "depcheck": "compass-scripts check-peer-deps && depcheck", "eslint": "eslint-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-aggregations/tsconfig-build.json b/packages/compass-aggregations/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-aggregations/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-aggregations/tsconfig-lint.json b/packages/compass-aggregations/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-aggregations/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-aggregations/tsconfig.json b/packages/compass-aggregations/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-aggregations/tsconfig.json +++ b/packages/compass-aggregations/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-app-registry/.eslintrc.js b/packages/compass-app-registry/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-app-registry/.eslintrc.js +++ b/packages/compass-app-registry/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-app-registry/package.json b/packages/compass-app-registry/package.json index 6d75857f0f7..51e4cf84896 100644 --- a/packages/compass-app-registry/package.json +++ b/packages/compass-app-registry/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-app-registry/tsconfig-build.json b/packages/compass-app-registry/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-app-registry/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-app-registry/tsconfig-lint.json b/packages/compass-app-registry/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-app-registry/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-app-registry/tsconfig.json b/packages/compass-app-registry/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-app-registry/tsconfig.json +++ b/packages/compass-app-registry/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-app-stores/.eslintrc.js b/packages/compass-app-stores/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-app-stores/.eslintrc.js +++ b/packages/compass-app-stores/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-app-stores/package.json b/packages/compass-app-stores/package.json index 50dcb0e00ce..fbc9f3b5f8e 100644 --- a/packages/compass-app-stores/package.json +++ b/packages/compass-app-stores/package.json @@ -35,9 +35,9 @@ "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-app-stores/tsconfig-build.json b/packages/compass-app-stores/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-app-stores/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-app-stores/tsconfig-lint.json b/packages/compass-app-stores/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-app-stores/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-app-stores/tsconfig.json b/packages/compass-app-stores/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-app-stores/tsconfig.json +++ b/packages/compass-app-stores/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-assistant/.eslintrc.js b/packages/compass-assistant/.eslintrc.js index f06f8fc6013..feba135d926 100644 --- a/packages/compass-assistant/.eslintrc.js +++ b/packages/compass-assistant/.eslintrc.js @@ -3,6 +3,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-assistant/package.json b/packages/compass-assistant/package.json index 840692d9a1b..bf757cbd320 100644 --- a/packages/compass-assistant/package.json +++ b/packages/compass-assistant/package.json @@ -34,8 +34,8 @@ "bootstrap": "npm run compile", "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\" || true", "precompile": "npm run clean", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-assistant/tsconfig-build.json b/packages/compass-assistant/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-assistant/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-assistant/tsconfig-lint.json b/packages/compass-assistant/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-assistant/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-assistant/tsconfig.json b/packages/compass-assistant/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-assistant/tsconfig.json +++ b/packages/compass-assistant/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-collection/.eslintrc.js b/packages/compass-collection/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-collection/.eslintrc.js +++ b/packages/compass-collection/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-collection/package.json b/packages/compass-collection/package.json index 8743a12f7e3..f672bba2db7 100644 --- a/packages/compass-collection/package.json +++ b/packages/compass-collection/package.json @@ -31,7 +31,7 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", @@ -44,7 +44,7 @@ "test-watch": "npm run test -- --watch", "test-ci": "npm run test-cov", "test-ci-electron": "npm run test-electron", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." }, "dependencies": { diff --git a/packages/compass-collection/tsconfig-build.json b/packages/compass-collection/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-collection/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-collection/tsconfig-lint.json b/packages/compass-collection/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-collection/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-collection/tsconfig.json b/packages/compass-collection/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-collection/tsconfig.json +++ b/packages/compass-collection/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-components/.eslintrc.js b/packages/compass-components/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-components/.eslintrc.js +++ b/packages/compass-components/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-components/package.json b/packages/compass-components/package.json index 1af0030a9df..e06a9915f1d 100644 --- a/packages/compass-components/package.json +++ b/packages/compass-components/package.json @@ -17,8 +17,8 @@ "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", "clean": "node -e \"fs.rmSync('lib', { recursive: true, force: true })\" || true", "precompile": "npm run clean", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-components/tsconfig-build.json b/packages/compass-components/tsconfig-build.json new file mode 100644 index 00000000000..1213000e737 --- /dev/null +++ b/packages/compass-components/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"] +} diff --git a/packages/compass-components/tsconfig-lint.json b/packages/compass-components/tsconfig-lint.json deleted file mode 100644 index eda2ec11aa5..00000000000 --- a/packages/compass-components/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "lib"] -} diff --git a/packages/compass-components/tsconfig.json b/packages/compass-components/tsconfig.json index 29bc42505ac..cd45978fcfa 100644 --- a/packages/compass-components/tsconfig.json +++ b/packages/compass-components/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "lib" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"] + "include": ["**/*"], + "exclude": ["node_modules", "lib"] } diff --git a/packages/compass-connection-import-export/.eslintrc.js b/packages/compass-connection-import-export/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-connection-import-export/.eslintrc.js +++ b/packages/compass-connection-import-export/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-connection-import-export/package.json b/packages/compass-connection-import-export/package.json index 413e73e36b9..92770d2e5d2 100644 --- a/packages/compass-connection-import-export/package.json +++ b/packages/compass-connection-import-export/package.json @@ -36,8 +36,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-connection-import-export/tsconfig-build.json b/packages/compass-connection-import-export/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-connection-import-export/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-connection-import-export/tsconfig-lint.json b/packages/compass-connection-import-export/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-connection-import-export/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-connection-import-export/tsconfig.json b/packages/compass-connection-import-export/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-connection-import-export/tsconfig.json +++ b/packages/compass-connection-import-export/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-connections-navigation/.eslintrc.js b/packages/compass-connections-navigation/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-connections-navigation/.eslintrc.js +++ b/packages/compass-connections-navigation/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-connections-navigation/package.json b/packages/compass-connections-navigation/package.json index 3a63d095cac..4fd4f8390f7 100644 --- a/packages/compass-connections-navigation/package.json +++ b/packages/compass-connections-navigation/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-connections-navigation/tsconfig-build.json b/packages/compass-connections-navigation/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-connections-navigation/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-connections-navigation/tsconfig-lint.json b/packages/compass-connections-navigation/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-connections-navigation/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-connections-navigation/tsconfig.json b/packages/compass-connections-navigation/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-connections-navigation/tsconfig.json +++ b/packages/compass-connections-navigation/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-connections/.eslintrc.js b/packages/compass-connections/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-connections/.eslintrc.js +++ b/packages/compass-connections/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-connections/package.json b/packages/compass-connections/package.json index eb6cecf06d8..e46e6a1aa06 100644 --- a/packages/compass-connections/package.json +++ b/packages/compass-connections/package.json @@ -34,13 +34,13 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "precompile": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\" || true", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", "depcheck": "compass-scripts check-peer-deps && depcheck", - "check": "npm run lint && npm run depcheck", + "check": "npm run typecheck && npm run lint && npm run depcheck", "check-ci": "npm run check", "test": "mocha", "test-electron": "xvfb-maybe electron-mocha --no-sandbox", @@ -48,7 +48,8 @@ "test-watch": "npm run test -- --watch", "test-ci": "npm run test-cov", "test-ci-electron": "npm run test-electron", - "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." + "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", + "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { "@mongodb-js/compass-app-registry": "^9.4.24", diff --git a/packages/compass-connections/tsconfig-build.json b/packages/compass-connections/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-connections/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-connections/tsconfig-lint.json b/packages/compass-connections/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-connections/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-connections/tsconfig.json b/packages/compass-connections/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-connections/tsconfig.json +++ b/packages/compass-connections/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-context-menu/.eslintrc.js b/packages/compass-context-menu/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-context-menu/.eslintrc.js +++ b/packages/compass-context-menu/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-context-menu/package.json b/packages/compass-context-menu/package.json index c28879f62ef..c47ded19ea6 100644 --- a/packages/compass-context-menu/package.json +++ b/packages/compass-context-menu/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-context-menu/tsconfig-build.json b/packages/compass-context-menu/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-context-menu/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-context-menu/tsconfig-lint.json b/packages/compass-context-menu/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-context-menu/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-context-menu/tsconfig.json b/packages/compass-context-menu/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-context-menu/tsconfig.json +++ b/packages/compass-context-menu/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-crud/.eslintrc.js b/packages/compass-crud/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-crud/.eslintrc.js +++ b/packages/compass-crud/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-crud/package.json b/packages/compass-crud/package.json index 05a9e46d9b9..f768ad3dcce 100644 --- a/packages/compass-crud/package.json +++ b/packages/compass-crud/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-crud/tsconfig-build.json b/packages/compass-crud/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-crud/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-crud/tsconfig-lint.json b/packages/compass-crud/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-crud/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-crud/tsconfig.json b/packages/compass-crud/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-crud/tsconfig.json +++ b/packages/compass-crud/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-data-modeling/.eslintrc.js b/packages/compass-data-modeling/.eslintrc.js index f06f8fc6013..feba135d926 100644 --- a/packages/compass-data-modeling/.eslintrc.js +++ b/packages/compass-data-modeling/.eslintrc.js @@ -3,6 +3,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-data-modeling/package.json b/packages/compass-data-modeling/package.json index f2cef2416eb..b36825aeab3 100644 --- a/packages/compass-data-modeling/package.json +++ b/packages/compass-data-modeling/package.json @@ -37,8 +37,8 @@ "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-data-modeling/tsconfig-build.json b/packages/compass-data-modeling/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-data-modeling/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-data-modeling/tsconfig-lint.json b/packages/compass-data-modeling/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-data-modeling/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-data-modeling/tsconfig.json b/packages/compass-data-modeling/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-data-modeling/tsconfig.json +++ b/packages/compass-data-modeling/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-e2e-tests/package.json b/packages/compass-e2e-tests/package.json index 7901e4e7110..8d10927debe 100644 --- a/packages/compass-e2e-tests/package.json +++ b/packages/compass-e2e-tests/package.json @@ -5,12 +5,12 @@ "description": "E2E test suite for Compass app that follows smoke tests / feature testing matrix", "scripts": { "clean": "node -e \"try { fs.rmdirSync('.mongodb', { recursive: true }); } catch (e) {}\" && node -e \"try { fs.rmdirSync('.log', { recursive: true }); } catch (e) {}\"", - "typecheck": "tsc -p tsconfig.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run typecheck && npm run eslint . && npm run prettier -- --check .", "depcheck": "depcheck", - "check": "npm run lint && npm run depcheck", + "check": "npm run typecheck && npm run lint && npm run depcheck", "test": "xvfb-maybe --auto-servernum --server-args=\"-screen 0 1432x840x24\" -- ts-node index.ts", "test-ci": "npm run test", "posttest-ci": "npm run coverage-report", diff --git a/packages/compass-editor/.eslintrc.js b/packages/compass-editor/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-editor/.eslintrc.js +++ b/packages/compass-editor/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-editor/package.json b/packages/compass-editor/package.json index 00407c7639d..9e39dff5c3f 100644 --- a/packages/compass-editor/package.json +++ b/packages/compass-editor/package.json @@ -31,8 +31,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-editor/tsconfig-build.json b/packages/compass-editor/tsconfig-build.json new file mode 100644 index 00000000000..1213000e737 --- /dev/null +++ b/packages/compass-editor/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"] +} diff --git a/packages/compass-editor/tsconfig-lint.json b/packages/compass-editor/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-editor/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-editor/tsconfig.json b/packages/compass-editor/tsconfig.json index cd892ebb440..3495f3190e9 100644 --- a/packages/compass-editor/tsconfig.json +++ b/packages/compass-editor/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-explain-plan/.eslintrc.js b/packages/compass-explain-plan/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-explain-plan/.eslintrc.js +++ b/packages/compass-explain-plan/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-explain-plan/package.json b/packages/compass-explain-plan/package.json index ecb06bf8702..61e3389d309 100644 --- a/packages/compass-explain-plan/package.json +++ b/packages/compass-explain-plan/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-explain-plan/tsconfig-build.json b/packages/compass-explain-plan/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-explain-plan/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-explain-plan/tsconfig-lint.json b/packages/compass-explain-plan/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-explain-plan/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-explain-plan/tsconfig.json b/packages/compass-explain-plan/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-explain-plan/tsconfig.json +++ b/packages/compass-explain-plan/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-export-to-language/.eslintrc.js b/packages/compass-export-to-language/.eslintrc.js index 96c534ab2ea..52b51dc8e58 100644 --- a/packages/compass-export-to-language/.eslintrc.js +++ b/packages/compass-export-to-language/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, env: { node: true, diff --git a/packages/compass-export-to-language/package.json b/packages/compass-export-to-language/package.json index f8d98444cd4..e052f0276fc 100644 --- a/packages/compass-export-to-language/package.json +++ b/packages/compass-export-to-language/package.json @@ -31,9 +31,9 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-export-to-language/tsconfig-build.json b/packages/compass-export-to-language/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-export-to-language/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-export-to-language/tsconfig-lint.json b/packages/compass-export-to-language/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-export-to-language/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-export-to-language/tsconfig.json b/packages/compass-export-to-language/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-export-to-language/tsconfig.json +++ b/packages/compass-export-to-language/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-field-store/.eslintrc.js b/packages/compass-field-store/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-field-store/.eslintrc.js +++ b/packages/compass-field-store/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-field-store/package.json b/packages/compass-field-store/package.json index 2b3158df593..8ae3f77f785 100644 --- a/packages/compass-field-store/package.json +++ b/packages/compass-field-store/package.json @@ -31,9 +31,9 @@ "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-field-store/tsconfig-build.json b/packages/compass-field-store/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-field-store/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-field-store/tsconfig-lint.json b/packages/compass-field-store/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-field-store/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-field-store/tsconfig.json b/packages/compass-field-store/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-field-store/tsconfig.json +++ b/packages/compass-field-store/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-find-in-page/.eslintrc.js b/packages/compass-find-in-page/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-find-in-page/.eslintrc.js +++ b/packages/compass-find-in-page/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-find-in-page/package.json b/packages/compass-find-in-page/package.json index e99c7cdc636..6149f248625 100644 --- a/packages/compass-find-in-page/package.json +++ b/packages/compass-find-in-page/package.json @@ -30,8 +30,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-find-in-page/tsconfig-build.json b/packages/compass-find-in-page/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-find-in-page/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-find-in-page/tsconfig-lint.json b/packages/compass-find-in-page/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-find-in-page/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-find-in-page/tsconfig.json b/packages/compass-find-in-page/tsconfig.json index 8176eabdf2c..ea16f7af18a 100644 --- a/packages/compass-find-in-page/tsconfig.json +++ b/packages/compass-find-in-page/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "lib": ["ES2020", "DOM"] }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-generative-ai/.eslintrc.js b/packages/compass-generative-ai/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-generative-ai/.eslintrc.js +++ b/packages/compass-generative-ai/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-generative-ai/package.json b/packages/compass-generative-ai/package.json index 011e910e4d6..c24720b124f 100644 --- a/packages/compass-generative-ai/package.json +++ b/packages/compass-generative-ai/package.json @@ -34,9 +34,9 @@ "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-generative-ai/tsconfig-build.json b/packages/compass-generative-ai/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-generative-ai/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-generative-ai/tsconfig-lint.json b/packages/compass-generative-ai/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-generative-ai/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-generative-ai/tsconfig.json b/packages/compass-generative-ai/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-generative-ai/tsconfig.json +++ b/packages/compass-generative-ai/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-global-writes/.eslintrc.js b/packages/compass-global-writes/.eslintrc.js index f06f8fc6013..feba135d926 100644 --- a/packages/compass-global-writes/.eslintrc.js +++ b/packages/compass-global-writes/.eslintrc.js @@ -3,6 +3,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-global-writes/package.json b/packages/compass-global-writes/package.json index 9f1982a00d8..1f2df6165c5 100644 --- a/packages/compass-global-writes/package.json +++ b/packages/compass-global-writes/package.json @@ -32,8 +32,8 @@ "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-global-writes/tsconfig-build.json b/packages/compass-global-writes/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-global-writes/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-global-writes/tsconfig-lint.json b/packages/compass-global-writes/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-global-writes/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-global-writes/tsconfig.json b/packages/compass-global-writes/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-global-writes/tsconfig.json +++ b/packages/compass-global-writes/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-import-export/.eslintrc.js b/packages/compass-import-export/.eslintrc.js index 17bd418218f..6b680c015ef 100644 --- a/packages/compass-import-export/.eslintrc.js +++ b/packages/compass-import-export/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, overrides: [ { diff --git a/packages/compass-import-export/package.json b/packages/compass-import-export/package.json index 093a41b13ed..ba5d1cda703 100644 --- a/packages/compass-import-export/package.json +++ b/packages/compass-import-export/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-import-export/tsconfig-build.json b/packages/compass-import-export/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-import-export/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-import-export/tsconfig-lint.json b/packages/compass-import-export/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-import-export/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-import-export/tsconfig.json b/packages/compass-import-export/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-import-export/tsconfig.json +++ b/packages/compass-import-export/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-indexes/.eslintrc.js b/packages/compass-indexes/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-indexes/.eslintrc.js +++ b/packages/compass-indexes/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-indexes/package.json b/packages/compass-indexes/package.json index 1bdf771948d..e67c7bec994 100644 --- a/packages/compass-indexes/package.json +++ b/packages/compass-indexes/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-indexes/tsconfig-build.json b/packages/compass-indexes/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-indexes/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-indexes/tsconfig-lint.json b/packages/compass-indexes/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-indexes/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-indexes/tsconfig.json b/packages/compass-indexes/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-indexes/tsconfig.json +++ b/packages/compass-indexes/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-intercom/.eslintrc.js b/packages/compass-intercom/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-intercom/.eslintrc.js +++ b/packages/compass-intercom/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-intercom/package.json b/packages/compass-intercom/package.json index cd59a47c37c..b0b0dcef4f4 100644 --- a/packages/compass-intercom/package.json +++ b/packages/compass-intercom/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-intercom/tsconfig-build.json b/packages/compass-intercom/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-intercom/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-intercom/tsconfig-lint.json b/packages/compass-intercom/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-intercom/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-intercom/tsconfig.json b/packages/compass-intercom/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/compass-intercom/tsconfig.json +++ b/packages/compass-intercom/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-logging/.eslintrc.js b/packages/compass-logging/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-logging/.eslintrc.js +++ b/packages/compass-logging/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-logging/package.json b/packages/compass-logging/package.json index 20103ef5a1e..95fec183125 100644 --- a/packages/compass-logging/package.json +++ b/packages/compass-logging/package.json @@ -37,8 +37,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-logging/tsconfig-build.json b/packages/compass-logging/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-logging/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-logging/tsconfig-lint.json b/packages/compass-logging/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-logging/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-logging/tsconfig.json b/packages/compass-logging/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/compass-logging/tsconfig.json +++ b/packages/compass-logging/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-maybe-protect-connection-string/.eslintrc.js b/packages/compass-maybe-protect-connection-string/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-maybe-protect-connection-string/.eslintrc.js +++ b/packages/compass-maybe-protect-connection-string/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-maybe-protect-connection-string/package.json b/packages/compass-maybe-protect-connection-string/package.json index 8d6a53bbbc0..87377f8f2c2 100644 --- a/packages/compass-maybe-protect-connection-string/package.json +++ b/packages/compass-maybe-protect-connection-string/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-maybe-protect-connection-string/tsconfig-build.json b/packages/compass-maybe-protect-connection-string/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-maybe-protect-connection-string/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-maybe-protect-connection-string/tsconfig-lint.json b/packages/compass-maybe-protect-connection-string/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-maybe-protect-connection-string/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-maybe-protect-connection-string/tsconfig.json b/packages/compass-maybe-protect-connection-string/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/compass-maybe-protect-connection-string/tsconfig.json +++ b/packages/compass-maybe-protect-connection-string/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-preferences-model/.eslintrc.js b/packages/compass-preferences-model/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-preferences-model/.eslintrc.js +++ b/packages/compass-preferences-model/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-preferences-model/package.json b/packages/compass-preferences-model/package.json index 63e74736806..3230fdf2515 100644 --- a/packages/compass-preferences-model/package.json +++ b/packages/compass-preferences-model/package.json @@ -36,17 +36,18 @@ "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\" || true", "precompile": "npm run clean", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", "depcheck": "compass-scripts check-peer-deps && depcheck", - "check": "npm run lint && npm run depcheck", + "check": "npm run typecheck && npm run lint && npm run depcheck", "check-ci": "npm run check", "test-check-ci": "npm run check && npm test", "test": "mocha", "test-ci": "npm run test", - "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." + "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", + "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { "@mongodb-js/compass-app-registry": "^9.4.24", diff --git a/packages/compass-preferences-model/tsconfig-build.json b/packages/compass-preferences-model/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-preferences-model/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-preferences-model/tsconfig-lint.json b/packages/compass-preferences-model/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-preferences-model/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-preferences-model/tsconfig.json b/packages/compass-preferences-model/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-preferences-model/tsconfig.json +++ b/packages/compass-preferences-model/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-query-bar/.eslintrc.js b/packages/compass-query-bar/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-query-bar/.eslintrc.js +++ b/packages/compass-query-bar/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-query-bar/package.json b/packages/compass-query-bar/package.json index 1dc3e8c0c09..67aab68584d 100644 --- a/packages/compass-query-bar/package.json +++ b/packages/compass-query-bar/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-query-bar/tsconfig-build.json b/packages/compass-query-bar/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-query-bar/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-query-bar/tsconfig-lint.json b/packages/compass-query-bar/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-query-bar/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-query-bar/tsconfig.json b/packages/compass-query-bar/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-query-bar/tsconfig.json +++ b/packages/compass-query-bar/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-saved-aggregations-queries/.eslintrc.js b/packages/compass-saved-aggregations-queries/.eslintrc.js index 7f3f9408aa1..446f5de40c0 100644 --- a/packages/compass-saved-aggregations-queries/.eslintrc.js +++ b/packages/compass-saved-aggregations-queries/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, overrides: [ { diff --git a/packages/compass-saved-aggregations-queries/package.json b/packages/compass-saved-aggregations-queries/package.json index 5826b675915..a83b8db23ba 100644 --- a/packages/compass-saved-aggregations-queries/package.json +++ b/packages/compass-saved-aggregations-queries/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-saved-aggregations-queries/tsconfig-build.json b/packages/compass-saved-aggregations-queries/tsconfig-build.json new file mode 100644 index 00000000000..1213000e737 --- /dev/null +++ b/packages/compass-saved-aggregations-queries/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"] +} diff --git a/packages/compass-saved-aggregations-queries/tsconfig-lint.json b/packages/compass-saved-aggregations-queries/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-saved-aggregations-queries/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-saved-aggregations-queries/tsconfig.json b/packages/compass-saved-aggregations-queries/tsconfig.json index 4b817cbde74..ea16f7af18a 100644 --- a/packages/compass-saved-aggregations-queries/tsconfig.json +++ b/packages/compass-saved-aggregations-queries/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "lib": ["ES2020", "DOM"] }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*", "./src/**/*.test.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-schema-validation/.eslintrc.js b/packages/compass-schema-validation/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-schema-validation/.eslintrc.js +++ b/packages/compass-schema-validation/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-schema-validation/package.json b/packages/compass-schema-validation/package.json index 8a1be543a23..b0473f495f7 100644 --- a/packages/compass-schema-validation/package.json +++ b/packages/compass-schema-validation/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-schema-validation/tsconfig-build.json b/packages/compass-schema-validation/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-schema-validation/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-schema-validation/tsconfig-lint.json b/packages/compass-schema-validation/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-schema-validation/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-schema-validation/tsconfig.json b/packages/compass-schema-validation/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-schema-validation/tsconfig.json +++ b/packages/compass-schema-validation/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-schema/.eslintrc.js b/packages/compass-schema/.eslintrc.js index 96c534ab2ea..52b51dc8e58 100644 --- a/packages/compass-schema/.eslintrc.js +++ b/packages/compass-schema/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, env: { node: true, diff --git a/packages/compass-schema/package.json b/packages/compass-schema/package.json index bed2c637c71..460ef4434af 100644 --- a/packages/compass-schema/package.json +++ b/packages/compass-schema/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-schema/tsconfig-build.json b/packages/compass-schema/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-schema/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-schema/tsconfig-lint.json b/packages/compass-schema/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-schema/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-schema/tsconfig.json b/packages/compass-schema/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-schema/tsconfig.json +++ b/packages/compass-schema/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-serverstats/.eslintrc.js b/packages/compass-serverstats/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-serverstats/.eslintrc.js +++ b/packages/compass-serverstats/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-serverstats/package.json b/packages/compass-serverstats/package.json index 691d0061a72..3c8c5d5d6eb 100644 --- a/packages/compass-serverstats/package.json +++ b/packages/compass-serverstats/package.json @@ -13,10 +13,10 @@ }, "types": "./dist/index.d.ts", "scripts": { - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "test": "mocha", "test-electron": "xvfb-maybe electron-mocha --no-sandbox", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "check": "npm run typecheck && npm run lint && npm run depcheck", "check-ci": "npm run check", "eslint": "eslint-compass", diff --git a/packages/compass-serverstats/tsconfig-build.json b/packages/compass-serverstats/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-serverstats/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-serverstats/tsconfig-lint.json b/packages/compass-serverstats/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-serverstats/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-serverstats/tsconfig.json b/packages/compass-serverstats/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-serverstats/tsconfig.json +++ b/packages/compass-serverstats/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-settings/.eslintrc.js b/packages/compass-settings/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-settings/.eslintrc.js +++ b/packages/compass-settings/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-settings/package.json b/packages/compass-settings/package.json index 698a53dc424..9fc9149ae23 100644 --- a/packages/compass-settings/package.json +++ b/packages/compass-settings/package.json @@ -31,9 +31,9 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-settings/tsconfig-build.json b/packages/compass-settings/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-settings/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-settings/tsconfig-lint.json b/packages/compass-settings/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-settings/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-settings/tsconfig.json b/packages/compass-settings/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-settings/tsconfig.json +++ b/packages/compass-settings/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-shell/.eslintrc.js b/packages/compass-shell/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-shell/.eslintrc.js +++ b/packages/compass-shell/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-shell/package.json b/packages/compass-shell/package.json index 4aceee04489..37a49746f57 100644 --- a/packages/compass-shell/package.json +++ b/packages/compass-shell/package.json @@ -31,9 +31,9 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-shell/tsconfig-build.json b/packages/compass-shell/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-shell/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-shell/tsconfig-lint.json b/packages/compass-shell/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-shell/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-shell/tsconfig.json b/packages/compass-shell/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/compass-shell/tsconfig.json +++ b/packages/compass-shell/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-sidebar/.eslintrc.js b/packages/compass-sidebar/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-sidebar/.eslintrc.js +++ b/packages/compass-sidebar/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-sidebar/package.json b/packages/compass-sidebar/package.json index c84a417c8d4..d631dc8cfa9 100644 --- a/packages/compass-sidebar/package.json +++ b/packages/compass-sidebar/package.json @@ -31,8 +31,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-sidebar/tsconfig-build.json b/packages/compass-sidebar/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-sidebar/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-sidebar/tsconfig-lint.json b/packages/compass-sidebar/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-sidebar/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-sidebar/tsconfig.json b/packages/compass-sidebar/tsconfig.json index 3b3c31acfb7..20ee36c332d 100644 --- a/packages/compass-sidebar/tsconfig.json +++ b/packages/compass-sidebar/tsconfig.json @@ -4,6 +4,6 @@ "allowJs": true, "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-smoke-tests/package.json b/packages/compass-smoke-tests/package.json index 46efa8d0aa9..e74203396b5 100644 --- a/packages/compass-smoke-tests/package.json +++ b/packages/compass-smoke-tests/package.json @@ -20,7 +20,7 @@ "license": "SSPL", "scripts": { "start": "ts-node src/cli.ts", - "typecheck": "tsc -p tsconfig.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-telemetry/.eslintrc.js b/packages/compass-telemetry/.eslintrc.js index 49d6d33c515..6c54a421d0a 100644 --- a/packages/compass-telemetry/.eslintrc.js +++ b/packages/compass-telemetry/.eslintrc.js @@ -3,7 +3,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, overrides: [ { diff --git a/packages/compass-telemetry/package.json b/packages/compass-telemetry/package.json index 0cd4647d6db..d996de216d1 100644 --- a/packages/compass-telemetry/package.json +++ b/packages/compass-telemetry/package.json @@ -37,8 +37,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-telemetry/tsconfig-build.json b/packages/compass-telemetry/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-telemetry/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-telemetry/tsconfig-lint.json b/packages/compass-telemetry/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-telemetry/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-telemetry/tsconfig.json b/packages/compass-telemetry/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-telemetry/tsconfig.json +++ b/packages/compass-telemetry/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-test-server/.eslintrc.js b/packages/compass-test-server/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-test-server/.eslintrc.js +++ b/packages/compass-test-server/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-test-server/package.json b/packages/compass-test-server/package.json index 05ba9ff442e..e308c6d3f28 100644 --- a/packages/compass-test-server/package.json +++ b/packages/compass-test-server/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-test-server/tsconfig-build.json b/packages/compass-test-server/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-test-server/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-test-server/tsconfig-lint.json b/packages/compass-test-server/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-test-server/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-test-server/tsconfig.json b/packages/compass-test-server/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/compass-test-server/tsconfig.json +++ b/packages/compass-test-server/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-user-data/.eslintrc.js b/packages/compass-user-data/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-user-data/.eslintrc.js +++ b/packages/compass-user-data/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-user-data/package.json b/packages/compass-user-data/package.json index c3e0a7aa869..b8e2ecef5ea 100644 --- a/packages/compass-user-data/package.json +++ b/packages/compass-user-data/package.json @@ -34,8 +34,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-user-data/tsconfig-build.json b/packages/compass-user-data/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-user-data/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-user-data/tsconfig-lint.json b/packages/compass-user-data/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-user-data/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-user-data/tsconfig.json b/packages/compass-user-data/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/compass-user-data/tsconfig.json +++ b/packages/compass-user-data/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-utils/.eslintrc.js b/packages/compass-utils/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-utils/.eslintrc.js +++ b/packages/compass-utils/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-utils/package.json b/packages/compass-utils/package.json index 0fd72de6790..96391c14517 100644 --- a/packages/compass-utils/package.json +++ b/packages/compass-utils/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-utils/tsconfig-build.json b/packages/compass-utils/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-utils/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-utils/tsconfig-lint.json b/packages/compass-utils/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-utils/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-utils/tsconfig.json b/packages/compass-utils/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/compass-utils/tsconfig.json +++ b/packages/compass-utils/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-web/.eslintrc.js b/packages/compass-web/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/compass-web/.eslintrc.js +++ b/packages/compass-web/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-web/package.json b/packages/compass-web/package.json index 1287b45a74a..6f293221ad9 100644 --- a/packages/compass-web/package.json +++ b/packages/compass-web/package.json @@ -50,7 +50,7 @@ "analyze": "npm run webpack -- --mode production --analyze", "watch": "npm run webpack -- --mode development --watch", "sync": "node scripts/sync-dist-to-mms.js", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-web/tsconfig-build.json b/packages/compass-web/tsconfig-build.json index d35317bd2d0..737091e2e1c 100644 --- a/packages/compass-web/tsconfig-build.json +++ b/packages/compass-web/tsconfig-build.json @@ -1,6 +1,3 @@ -// We include sandbox code in default tsconfig, but it affects emitted file -// paths. This is a special tsconfig for postcompile task so that the -// declarations emitted are only for files we actually want to publish { "extends": "./tsconfig.json", "include": ["src/**/*"], diff --git a/packages/compass-web/tsconfig-lint.json b/packages/compass-web/tsconfig-lint.json deleted file mode 100644 index b2dba386f9c..00000000000 --- a/packages/compass-web/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist", "test/types"] -} diff --git a/packages/compass-web/tsconfig.json b/packages/compass-web/tsconfig.json index 42499852900..f27cc34b276 100644 --- a/packages/compass-web/tsconfig.json +++ b/packages/compass-web/tsconfig.json @@ -3,13 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": [ - "src/**/*", - "polyfills/**/*", - // Including sandbox so that ts check and editor intellisense can provide - // useful information when working in the sandbox. It needs to be in the - // default tsconfig file - "sandbox/**/*" - ], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist", "test/types"] } diff --git a/packages/compass-welcome/.eslintrc.js b/packages/compass-welcome/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-welcome/.eslintrc.js +++ b/packages/compass-welcome/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-welcome/package.json b/packages/compass-welcome/package.json index 07ecd6da3e8..2125e9928e7 100644 --- a/packages/compass-welcome/package.json +++ b/packages/compass-welcome/package.json @@ -31,9 +31,9 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-welcome/tsconfig-build.json b/packages/compass-welcome/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-welcome/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-welcome/tsconfig-lint.json b/packages/compass-welcome/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-welcome/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-welcome/tsconfig.json b/packages/compass-welcome/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-welcome/tsconfig.json +++ b/packages/compass-welcome/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass-workspaces/.eslintrc.js b/packages/compass-workspaces/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/compass-workspaces/.eslintrc.js +++ b/packages/compass-workspaces/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/compass-workspaces/package.json b/packages/compass-workspaces/package.json index 3dfd0149d04..50b3870870d 100644 --- a/packages/compass-workspaces/package.json +++ b/packages/compass-workspaces/package.json @@ -33,9 +33,9 @@ "types": "./dist/index.d.ts", "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-workspaces/tsconfig-build.json b/packages/compass-workspaces/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/compass-workspaces/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/compass-workspaces/tsconfig-lint.json b/packages/compass-workspaces/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/compass-workspaces/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/compass-workspaces/tsconfig.json b/packages/compass-workspaces/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/compass-workspaces/tsconfig.json +++ b/packages/compass-workspaces/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/compass/.eslintrc.js b/packages/compass/.eslintrc.js index f5fb33afc71..09a35bd0b04 100644 --- a/packages/compass/.eslintrc.js +++ b/packages/compass/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, overrides: [ { diff --git a/packages/compass/package.json b/packages/compass/package.json index e98f46abedc..b230c3cb9ab 100644 --- a/packages/compass/package.json +++ b/packages/compass/package.json @@ -168,7 +168,7 @@ "lint": "npm run eslint . && npm run prettier -- --check .", "depcheck": "depcheck", "test-ci-electron": "npm run test-electron", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "typecheck": "tsc -p tsconfig.json --noEmit", "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", "verify-package-contents": "ts-node ./scripts/verify-package-contents.ts" }, diff --git a/packages/compass/tsconfig-lint.json b/packages/compass/tsconfig-lint.json deleted file mode 100644 index 21ad88e5082..00000000000 --- a/packages/compass/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["**/node_modules", "**/.*/", "dist", "build"] -} diff --git a/packages/compass/tsconfig.json b/packages/compass/tsconfig.json index 5a363940557..05d0006e60b 100644 --- a/packages/compass/tsconfig.json +++ b/packages/compass/tsconfig.json @@ -1,6 +1,5 @@ { "extends": "@mongodb-js/tsconfig-compass/tsconfig.react.json", - "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist", "build"] } diff --git a/packages/connection-form/.eslintrc.js b/packages/connection-form/.eslintrc.js index 275c5bcf68d..3edcfdd5b0a 100644 --- a/packages/connection-form/.eslintrc.js +++ b/packages/connection-form/.eslintrc.js @@ -4,7 +4,7 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, overrides: [ { diff --git a/packages/connection-form/package.json b/packages/connection-form/package.json index ebd105494df..214980f0305 100644 --- a/packages/connection-form/package.json +++ b/packages/connection-form/package.json @@ -31,8 +31,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/connection-form/tsconfig-build.json b/packages/connection-form/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/connection-form/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/connection-form/tsconfig-lint.json b/packages/connection-form/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/connection-form/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/connection-form/tsconfig.json b/packages/connection-form/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/connection-form/tsconfig.json +++ b/packages/connection-form/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/connection-info/.eslintrc.js b/packages/connection-info/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/connection-info/.eslintrc.js +++ b/packages/connection-info/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/connection-info/package.json b/packages/connection-info/package.json index 9768fa29f50..415bbbeebca 100644 --- a/packages/connection-info/package.json +++ b/packages/connection-info/package.json @@ -36,8 +36,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/connection-info/tsconfig-build.json b/packages/connection-info/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/connection-info/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/connection-info/tsconfig-lint.json b/packages/connection-info/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/connection-info/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/connection-info/tsconfig.json b/packages/connection-info/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/connection-info/tsconfig.json +++ b/packages/connection-info/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/connection-storage/.eslintrc.js b/packages/connection-storage/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/connection-storage/.eslintrc.js +++ b/packages/connection-storage/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/connection-storage/package.json b/packages/connection-storage/package.json index aaeca314441..306522bf1dc 100644 --- a/packages/connection-storage/package.json +++ b/packages/connection-storage/package.json @@ -41,8 +41,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/connection-storage/tsconfig-build.json b/packages/connection-storage/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/connection-storage/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/connection-storage/tsconfig-lint.json b/packages/connection-storage/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/connection-storage/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/connection-storage/tsconfig.json b/packages/connection-storage/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/connection-storage/tsconfig.json +++ b/packages/connection-storage/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/data-service/.eslintrc.js b/packages/data-service/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/data-service/.eslintrc.js +++ b/packages/data-service/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/data-service/package.json b/packages/data-service/package.json index 105b048b1f4..80221bfd3a2 100644 --- a/packages/data-service/package.json +++ b/packages/data-service/package.json @@ -35,12 +35,12 @@ "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", "clean": "node -e \"fs.rmSync('lib', { recursive: true, force: true })\" || true", "precompile": "npm run clean", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "depcheck": "compass-scripts check-peer-deps && depcheck", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", + "check": "npm run typecheck && npm run lint && npm run depcheck", "check-ci": "npm run check", "test": "mocha", "test-connectivity": "mocha ./src/connect.spec.ts", @@ -48,7 +48,8 @@ "test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test", "test-watch": "npm run test -- --watch", "test-ci": "npm run test-cov -- -- --include \"./**/*.{spec,test}.*\" --exclude \"./src/connect.spec.ts\" --exclude \"./src/csfle-collection-tracker.spec.ts\"", - "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." + "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", + "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { "@mongodb-js/compass-logging": "^1.7.17", diff --git a/packages/data-service/tsconfig-build.json b/packages/data-service/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/data-service/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/data-service/tsconfig-lint.json b/packages/data-service/tsconfig-lint.json deleted file mode 100644 index eda2ec11aa5..00000000000 --- a/packages/data-service/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "lib"] -} diff --git a/packages/data-service/tsconfig.json b/packages/data-service/tsconfig.json index 524df25b0fd..29dc06056e6 100644 --- a/packages/data-service/tsconfig.json +++ b/packages/data-service/tsconfig.json @@ -5,6 +5,6 @@ "lib": ["ES2020"], "outDir": "lib" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "lib"] } diff --git a/packages/databases-collections-list/.eslintrc.js b/packages/databases-collections-list/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/databases-collections-list/.eslintrc.js +++ b/packages/databases-collections-list/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/databases-collections-list/package.json b/packages/databases-collections-list/package.json index 52436d199c8..6893fc35063 100644 --- a/packages/databases-collections-list/package.json +++ b/packages/databases-collections-list/package.json @@ -34,8 +34,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/databases-collections-list/tsconfig-build.json b/packages/databases-collections-list/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/databases-collections-list/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/databases-collections-list/tsconfig-lint.json b/packages/databases-collections-list/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/databases-collections-list/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/databases-collections-list/tsconfig.json b/packages/databases-collections-list/tsconfig.json index 79bc84584ce..3495f3190e9 100644 --- a/packages/databases-collections-list/tsconfig.json +++ b/packages/databases-collections-list/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/databases-collections/.eslintrc.js b/packages/databases-collections/.eslintrc.js index b54d314ab18..0b379d7a576 100644 --- a/packages/databases-collections/.eslintrc.js +++ b/packages/databases-collections/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass/plugin'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/databases-collections/package.json b/packages/databases-collections/package.json index ab074728d22..c19dff218c0 100644 --- a/packages/databases-collections/package.json +++ b/packages/databases-collections/package.json @@ -27,8 +27,8 @@ }, "scripts": { "bootstrap": "npm run compile", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/databases-collections/tsconfig-build.json b/packages/databases-collections/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/databases-collections/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/databases-collections/tsconfig-lint.json b/packages/databases-collections/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/databases-collections/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/databases-collections/tsconfig.json b/packages/databases-collections/tsconfig.json index e45df8e2f65..6339680db32 100644 --- a/packages/databases-collections/tsconfig.json +++ b/packages/databases-collections/tsconfig.json @@ -4,6 +4,6 @@ "outDir": "dist", "allowJs": true }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/explain-plan-helper/.eslintrc.js b/packages/explain-plan-helper/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/explain-plan-helper/.eslintrc.js +++ b/packages/explain-plan-helper/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/explain-plan-helper/package.json b/packages/explain-plan-helper/package.json index 340e0f928e6..a084a8c4667 100644 --- a/packages/explain-plan-helper/package.json +++ b/packages/explain-plan-helper/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/explain-plan-helper/tsconfig-build.json b/packages/explain-plan-helper/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/explain-plan-helper/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/explain-plan-helper/tsconfig-lint.json b/packages/explain-plan-helper/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/explain-plan-helper/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/explain-plan-helper/tsconfig.json b/packages/explain-plan-helper/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/explain-plan-helper/tsconfig.json +++ b/packages/explain-plan-helper/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/hadron-document/.eslintrc.js b/packages/hadron-document/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/hadron-document/.eslintrc.js +++ b/packages/hadron-document/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/hadron-document/package.json b/packages/hadron-document/package.json index 91fa5b86394..d2e58030645 100644 --- a/packages/hadron-document/package.json +++ b/packages/hadron-document/package.json @@ -32,18 +32,19 @@ "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\" || true", "precompile": "npm run clean", - "compile": "tsc -p tsconfig.json", + "compile": "tsc -p tsconfig-build.json", "depcheck": "compass-scripts check-peer-deps && depcheck", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", - "check": "npm run lint && npm run depcheck", + "check": "npm run typecheck && npm run lint && npm run depcheck", "check-ci": "npm run check", "test": "mocha", "test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test", "test-watch": "npm run test -- --watch", "test-ci": "npm run test-cov", - "reformat": "npm run eslint . -- --fix && npm run prettier -- --write ." + "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", + "typecheck": "tsc -p tsconfig.json --noEmit" }, "dependencies": { "bson": "^6.10.4", diff --git a/packages/hadron-document/tsconfig-build.json b/packages/hadron-document/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/hadron-document/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/hadron-document/tsconfig-lint.json b/packages/hadron-document/tsconfig-lint.json deleted file mode 100644 index eda2ec11aa5..00000000000 --- a/packages/hadron-document/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "lib"] -} diff --git a/packages/hadron-document/tsconfig.json b/packages/hadron-document/tsconfig.json index 74955bd940b..cda1edf15cd 100644 --- a/packages/hadron-document/tsconfig.json +++ b/packages/hadron-document/tsconfig.json @@ -5,6 +5,6 @@ "lib": ["ES2020"], "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "lib"] } diff --git a/packages/hadron-ipc/.eslintrc.js b/packages/hadron-ipc/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/hadron-ipc/.eslintrc.js +++ b/packages/hadron-ipc/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/hadron-ipc/package.json b/packages/hadron-ipc/package.json index 547333cb3ae..905b8c69489 100644 --- a/packages/hadron-ipc/package.json +++ b/packages/hadron-ipc/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/hadron-ipc/tsconfig-build.json b/packages/hadron-ipc/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/hadron-ipc/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/hadron-ipc/tsconfig-lint.json b/packages/hadron-ipc/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/hadron-ipc/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/hadron-ipc/tsconfig.json b/packages/hadron-ipc/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/hadron-ipc/tsconfig.json +++ b/packages/hadron-ipc/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/mongodb-query-util/.eslintrc.js b/packages/mongodb-query-util/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/mongodb-query-util/.eslintrc.js +++ b/packages/mongodb-query-util/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/mongodb-query-util/package.json b/packages/mongodb-query-util/package.json index b740d63abc2..3bc0600a767 100644 --- a/packages/mongodb-query-util/package.json +++ b/packages/mongodb-query-util/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/mongodb-query-util/tsconfig-build.json b/packages/mongodb-query-util/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/mongodb-query-util/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/mongodb-query-util/tsconfig-lint.json b/packages/mongodb-query-util/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/mongodb-query-util/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/mongodb-query-util/tsconfig.json b/packages/mongodb-query-util/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/mongodb-query-util/tsconfig.json +++ b/packages/mongodb-query-util/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/my-queries-storage/.eslintrc.js b/packages/my-queries-storage/.eslintrc.js index 9c3ab95632f..f64a0ab086d 100644 --- a/packages/my-queries-storage/.eslintrc.js +++ b/packages/my-queries-storage/.eslintrc.js @@ -4,6 +4,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/my-queries-storage/package.json b/packages/my-queries-storage/package.json index 2b7ab883ffe..338b26354ec 100644 --- a/packages/my-queries-storage/package.json +++ b/packages/my-queries-storage/package.json @@ -44,8 +44,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/my-queries-storage/tsconfig-build.json b/packages/my-queries-storage/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/my-queries-storage/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/my-queries-storage/tsconfig-lint.json b/packages/my-queries-storage/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/my-queries-storage/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/my-queries-storage/tsconfig.json b/packages/my-queries-storage/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/my-queries-storage/tsconfig.json +++ b/packages/my-queries-storage/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } diff --git a/packages/reflux-state-mixin/.eslintrc.js b/packages/reflux-state-mixin/.eslintrc.js index e4cf824b6ac..a812ac46f5d 100644 --- a/packages/reflux-state-mixin/.eslintrc.js +++ b/packages/reflux-state-mixin/.eslintrc.js @@ -3,6 +3,6 @@ module.exports = { extends: ['@mongodb-js/eslint-config-compass'], parserOptions: { tsconfigRootDir: __dirname, - project: ['./tsconfig-lint.json'], + project: ['./tsconfig.json'], }, }; diff --git a/packages/reflux-state-mixin/package.json b/packages/reflux-state-mixin/package.json index 6249bfb8600..5dffc7434bf 100644 --- a/packages/reflux-state-mixin/package.json +++ b/packages/reflux-state-mixin/package.json @@ -35,8 +35,8 @@ "scripts": { "bootstrap": "npm run compile", "prepublishOnly": "npm run compile && compass-scripts check-exports-exist", - "compile": "tsc -p tsconfig.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", - "typecheck": "tsc -p tsconfig-lint.json --noEmit", + "compile": "tsc -p tsconfig-build.json && gen-esm-wrapper . ./dist/.esm-wrapper.mjs", + "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/reflux-state-mixin/tsconfig-build.json b/packages/reflux-state-mixin/tsconfig-build.json new file mode 100644 index 00000000000..737091e2e1c --- /dev/null +++ b/packages/reflux-state-mixin/tsconfig-build.json @@ -0,0 +1,5 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*"], + "exclude": ["./src/**/*.spec.*"] +} diff --git a/packages/reflux-state-mixin/tsconfig-lint.json b/packages/reflux-state-mixin/tsconfig-lint.json deleted file mode 100644 index 6bdef84f322..00000000000 --- a/packages/reflux-state-mixin/tsconfig-lint.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": ["**/*"], - "exclude": ["node_modules", "dist"] -} diff --git a/packages/reflux-state-mixin/tsconfig.json b/packages/reflux-state-mixin/tsconfig.json index ecd0a14474a..236d16200ee 100644 --- a/packages/reflux-state-mixin/tsconfig.json +++ b/packages/reflux-state-mixin/tsconfig.json @@ -3,6 +3,6 @@ "compilerOptions": { "outDir": "dist" }, - "include": ["src/**/*"], - "exclude": ["./src/**/*.spec.*"] + "include": ["**/*"], + "exclude": ["node_modules", "dist"] } From 841ee1504e26da4afed5e7997e1da6c8b1701dbb Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 25 Sep 2025 16:06:27 +0200 Subject: [PATCH 3/4] chore: disable spec file typecheks for some packages --- packages/compass-connections/package.json | 2 +- packages/compass-crud/package.json | 2 +- packages/compass-preferences-model/package.json | 2 +- packages/compass-settings/package.json | 2 +- packages/compass-shell/package.json | 2 +- packages/data-service/package.json | 2 +- packages/hadron-document/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/compass-connections/package.json b/packages/compass-connections/package.json index e46e6a1aa06..8549d2979ed 100644 --- a/packages/compass-connections/package.json +++ b/packages/compass-connections/package.json @@ -49,7 +49,7 @@ "test-ci": "npm run test-cov", "test-ci-electron": "npm run test-electron", "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", - "typecheck": "tsc -p tsconfig.json --noEmit" + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit" }, "dependencies": { "@mongodb-js/compass-app-registry": "^9.4.24", diff --git a/packages/compass-crud/package.json b/packages/compass-crud/package.json index f768ad3dcce..6741e5471cf 100644 --- a/packages/compass-crud/package.json +++ b/packages/compass-crud/package.json @@ -32,7 +32,7 @@ "scripts": { "bootstrap": "npm run compile", "compile": "tsc -p tsconfig-build.json", - "typecheck": "tsc -p tsconfig.json --noEmit", + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-preferences-model/package.json b/packages/compass-preferences-model/package.json index 3230fdf2515..5471c259167 100644 --- a/packages/compass-preferences-model/package.json +++ b/packages/compass-preferences-model/package.json @@ -47,7 +47,7 @@ "test": "mocha", "test-ci": "npm run test", "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", - "typecheck": "tsc -p tsconfig.json --noEmit" + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit" }, "dependencies": { "@mongodb-js/compass-app-registry": "^9.4.24", diff --git a/packages/compass-settings/package.json b/packages/compass-settings/package.json index 9fc9149ae23..96f334c7350 100644 --- a/packages/compass-settings/package.json +++ b/packages/compass-settings/package.json @@ -33,7 +33,7 @@ "bootstrap": "npm run compile", "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig.json --noEmit", + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/compass-shell/package.json b/packages/compass-shell/package.json index 37a49746f57..1a23f118d74 100644 --- a/packages/compass-shell/package.json +++ b/packages/compass-shell/package.json @@ -33,7 +33,7 @@ "bootstrap": "npm run compile", "compile": "tsc -p tsconfig-build.json", "start": "npm run webpack serve -- --mode development", - "typecheck": "tsc -p tsconfig.json --noEmit", + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", "lint": "npm run eslint . && npm run prettier -- --check .", diff --git a/packages/data-service/package.json b/packages/data-service/package.json index 80221bfd3a2..0be721fc592 100644 --- a/packages/data-service/package.json +++ b/packages/data-service/package.json @@ -49,7 +49,7 @@ "test-watch": "npm run test -- --watch", "test-ci": "npm run test-cov -- -- --include \"./**/*.{spec,test}.*\" --exclude \"./src/connect.spec.ts\" --exclude \"./src/csfle-collection-tracker.spec.ts\"", "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", - "typecheck": "tsc -p tsconfig.json --noEmit" + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit" }, "dependencies": { "@mongodb-js/compass-logging": "^1.7.17", diff --git a/packages/hadron-document/package.json b/packages/hadron-document/package.json index d2e58030645..751c38c9af1 100644 --- a/packages/hadron-document/package.json +++ b/packages/hadron-document/package.json @@ -44,7 +44,7 @@ "test-watch": "npm run test -- --watch", "test-ci": "npm run test-cov", "reformat": "npm run eslint . -- --fix && npm run prettier -- --write .", - "typecheck": "tsc -p tsconfig.json --noEmit" + "typecheck": "echo \"TODO(COMPASS-9897): typecheck is failing in test files\" && tsc -p tsconfig-build.json --noEmit" }, "dependencies": { "bson": "^6.10.4", From d7e5a1837f9d4f1184bce84cd8ff7b550f138ff8 Mon Sep 17 00:00:00 2001 From: Sergey Petushkov Date: Thu, 25 Sep 2025 17:03:30 +0200 Subject: [PATCH 4/4] chore: remove typecheck from lint --- packages/compass-e2e-tests/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compass-e2e-tests/package.json b/packages/compass-e2e-tests/package.json index 8d10927debe..09f74c13db6 100644 --- a/packages/compass-e2e-tests/package.json +++ b/packages/compass-e2e-tests/package.json @@ -8,7 +8,7 @@ "typecheck": "tsc -p tsconfig.json --noEmit", "eslint": "eslint-compass", "prettier": "prettier-compass", - "lint": "npm run typecheck && npm run eslint . && npm run prettier -- --check .", + "lint": "npm run eslint . && npm run prettier -- --check .", "depcheck": "depcheck", "check": "npm run typecheck && npm run lint && npm run depcheck", "test": "xvfb-maybe --auto-servernum --server-args=\"-screen 0 1432x840x24\" -- ts-node index.ts",