mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
check for keytar.node in same dir when packaged
This commit is contained in:
@@ -129,5 +129,10 @@ export class Main {
|
||||
}
|
||||
}
|
||||
|
||||
const main = new Main();
|
||||
main.run();
|
||||
if (!(process as any).pkg || fs.existsSync('./keytar.node')) {
|
||||
const main = new Main();
|
||||
main.run();
|
||||
} else {
|
||||
// tslint:disable-next-line
|
||||
console.error('The keytar.node dependency must be in the same directory as bwdc.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user