mirror of
https://github.com/zadam/trilium.git
synced 2025-09-13 10:05:16 +08:00
Fix electron dep conflicts
This commit is contained in:
parent
8f524f4529
commit
14896fe845
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ function getElectronVersion(distDir: string) {
|
|||
|
||||
const packageJsonPath = join(distDir, "package.json");
|
||||
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
||||
return packageJson.dependencies.electron;
|
||||
|
||||
const electronVersion = packageJson.devDependencies.electron || packageJson.dependencies.electron;
|
||||
|
||||
return electronVersion;
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
|
Loading…
Add table
Reference in a new issue