mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
msnodesql as optional dependency
This commit is contained in:
parent
d1aef572bd
commit
ccd9a0fa70
@ -6,8 +6,7 @@
|
||||
"dependencies": {
|
||||
"electron-log": "^4.3.1",
|
||||
"electron-store": "^5.1.1",
|
||||
"electron-updater": "^4.3.5",
|
||||
"msnodesqlv8": "^2.0.10"
|
||||
"electron-updater": "^4.3.5"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -69,5 +68,8 @@
|
||||
"cross-env": "^6.0.3",
|
||||
"electron": "11.1.1",
|
||||
"electron-builder": "22.9.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"msnodesqlv8": "^2.0.10"
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,9 @@
|
||||
const msnodesqlv8 = () => require('msnodesqlv8');
|
||||
|
||||
module.exports = { msnodesqlv8 };
|
||||
const win32Modules = {
|
||||
msnodesqlv8,
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
...(process.platform == 'win32' ? win32Modules : {}),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user