Browse Source
* Revert "Brought the update notification back"
This reverts commit 5d3d9d4f37
.
* add _npmPkg to pkg when now is installed via npm
* Prettified it
* Set _npmPkg to null
master
committed by
Leo Lamprecht
2 changed files with 15 additions and 10 deletions
@ -1,10 +1,13 @@ |
|||
/* eslint-disable import/no-unresolved */ |
|||
|
|||
let pkg |
|||
const path = require('path') |
|||
const pkg = require('../package.json') |
|||
|
|||
try { |
|||
pkg = require('../package.json') |
|||
const distDir = path.dirname(process.execPath) |
|||
pkg._npmPkg = require(path.join(distDir, '../../package.json')) |
|||
} catch (err) { |
|||
pkg = require('../../package.json') |
|||
pkg._npmPkg = null |
|||
} |
|||
|
|||
module.exports = pkg |
|||
|
Loading…
Reference in new issue