Skip to content

Commit

Permalink
PM-14445: Fix Desktop strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mzieniukbw committed Nov 4, 2024
1 parent dced473 commit 65adcfd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"postinstall": "electron-rebuild",
"start": "cross-env ELECTRON_IS_DEV=0 ELECTRON_NO_UPDATER=1 electron ./build",
"build-native": "cd desktop_native && node build.js",
"build": "concurrently -n Main,Rend,Prel -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\" \"npm run build:preload\"",
"build": "tsc-strict && concurrently -n Main,Rend,Prel -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\" \"npm run build:preload\"",
"build:dev": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main:dev\" \"npm run build:renderer:dev\"",
"build:preload": "cross-env NODE_ENV=production webpack --config webpack.preload.js",
"build:preload:watch": "cross-env NODE_ENV=production webpack --config webpack.preload.js --watch",
Expand Down
12 changes: 0 additions & 12 deletions apps/desktop/src/key-management/tsconfig.json

This file was deleted.

9 changes: 8 additions & 1 deletion apps/desktop/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@
"@bitwarden/tools-card": ["../../libs/tools/card/src"],
"@bitwarden/vault": ["../../libs/vault/src"]
},
"useDefineForClassFields": false
"useDefineForClassFields": false,
"plugins": [
{
"name": "typescript-strict-plugin",
"paths": ["./src/key-management"],
"excludePattern": ["**/*.spec.ts"]
}
]
},
"angularCompilerOptions": {
"strictTemplates": true,
Expand Down

0 comments on commit 65adcfd

Please sign in to comment.