Browse Source
* Revert "Disable update-notifier (#609)"
This reverts commit b7a8f23475
.
* pkg@3.0.6
* output 'please update' for both npm and non-npm install
master
Igor Klopov
8 years ago
committed by
Guillermo Rauch
3 changed files with 15 additions and 7 deletions
@ -1,10 +1,13 @@ |
|||||
/* eslint-disable import/no-unresolved */ |
/* eslint-disable import/no-unresolved */ |
||||
|
|
||||
let pkg |
const path = require('path') |
||||
|
const pkg = require('../package.json') |
||||
|
|
||||
try { |
try { |
||||
pkg = require('../package.json') |
const distDir = path.dirname(process.execPath) |
||||
|
pkg._npmPkg = require(path.join(distDir, '../../package.json')) |
||||
} catch (err) { |
} catch (err) { |
||||
pkg = require('../../package.json') |
pkg._npmPkg = null |
||||
} |
} |
||||
|
|
||||
module.exports = pkg |
module.exports = pkg |
||||
|
Loading…
Reference in new issue