1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

Implement and extend tsconfig.base across projects (#14554)

* Implement and extend tsconfig.base across projects

* fixup! Merge remote-tracking branch 'origin/main' into rename-tsconfig

* fix: import tsconfig.base from components

* fix: skip typechecking node modules

* fixing tests

* fix the tests for real

* undo accidentally change
This commit is contained in:
Addison Beck
2025-06-02 16:38:17 -04:00
committed by GitHub
parent f3ff1e98ec
commit 26caeb3083
67 changed files with 179 additions and 747 deletions

View File

@@ -1,6 +1,6 @@
const { pathsToModuleNameMapper } = require("ts-jest");
const { compilerOptions } = require("../../../shared/tsconfig.spec.json");
const { compilerOptions } = require("../../../../tsconfig.base");
/** @type {import('jest').Config} */
module.exports = {
@@ -8,6 +8,6 @@ module.exports = {
preset: "ts-jest",
testEnvironment: "../../../shared/test.environment.ts",
moduleNameMapper: pathsToModuleNameMapper(compilerOptions?.paths || {}, {
prefix: "<rootDir>/../../",
prefix: "<rootDir>/../../../../",
}),
};

View File

@@ -1,20 +1,5 @@
{
"extends": "../../../shared/tsconfig",
"compilerOptions": {
"paths": {
"@bitwarden/admin-console/common": ["../../../admin-console/src/common"],
"@bitwarden/angular/*": ["../../../angular/src/*"],
"@bitwarden/auth/common": ["../../../auth/src/common"],
"@bitwarden/common/*": ["../../../common/src/*"],
"@bitwarden/components": ["../../../components/src"],
"@bitwarden/generator-core": ["../../../tools/generator/core/src"],
"@bitwarden/generator-history": ["../../../tools/generator/extensions/history/src"],
"@bitwarden/key-management": ["../../../key-management/src"],
"@bitwarden/platform": ["../../../platform/src"],
"@bitwarden/ui-common": ["../../../ui/common/src"],
"@bitwarden/vault": ["../../../vault/src"]
}
},
"extends": "../../../../tsconfig.base",
"include": ["src"],
"exclude": ["node_modules", "dist"]
}