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:
8
bitwarden_license/bit-desktop/tsconfig.main.json
Normal file
8
bitwarden_license/bit-desktop/tsconfig.main.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "./tsconfig",
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "nodenext",
|
||||
"module": "nodenext"
|
||||
},
|
||||
"include": ["src/entry.ts", "src/global.d.ts"]
|
||||
}
|
||||
4
bitwarden_license/bit-desktop/tsconfig.preload.json
Normal file
4
bitwarden_license/bit-desktop/tsconfig.preload.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "./tsconfig",
|
||||
"include": ["src/preload.ts", "src/global.d.ts"]
|
||||
}
|
||||
@@ -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"),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user