1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-24 08:33:29 +00:00

bit desktop main/preload tsconfig

This commit is contained in:
Derek Nance
2026-02-17 16:13:43 -06:00
parent 0b4d350579
commit e6194d0212
3 changed files with 22 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"moduleResolution": "nodenext",
"module": "nodenext"
},
"include": ["src/entry.ts", "src/global.d.ts"]
}

View File

@@ -0,0 +1,4 @@
{
"extends": "./tsconfig",
"include": ["src/preload.ts", "src/global.d.ts"]
}

View File

@@ -18,11 +18,17 @@ module.exports = (webpackConfig, context) => {
},
main: {
entry: path.resolve(__dirname, "src/entry.ts"),
tsConfig: path.resolve(context.context.root, "bitwarden_license/bit-desktop/tsconfig.json"),
tsConfig: path.resolve(
context.context.root,
"bitwarden_license/bit-desktop/tsconfig.main.json",
),
},
preload: {
entry: path.resolve(__dirname, "src/preload.ts"),
tsConfig: path.resolve(context.context.root, "bitwarden_license/bit-desktop/tsconfig.json"),
tsConfig: path.resolve(
context.context.root,
"bitwarden_license/bit-desktop/tsconfig.preload.json",
),
},
outputPath: path.resolve(context.context.root, context.options.outputPath),
});
@@ -36,11 +42,11 @@ module.exports = (webpackConfig, context) => {
},
main: {
entry: path.resolve(__dirname, "src/entry.ts"),
tsConfig: path.resolve(__dirname, "tsconfig.json"),
tsConfig: path.resolve(__dirname, "tsconfig.main.json"),
},
preload: {
entry: path.resolve(__dirname, "src/preload.ts"),
tsConfig: path.resolve(__dirname, "tsconfig.json"),
tsConfig: path.resolve(__dirname, "tsconfig.preload.json"),
},
});
}