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 */ |
|||
|
|||
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