From: Cheng Zhao Date: Sun, 12 Apr 2015 13:42:11 +0000 (+0800) Subject: No need to store apm's version in index.json X-Git-Tag: v0.24.0~17 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=61100c9c0bd5ca9010fdc74a9ff572741a8a4c0e;p=electron.git No need to store apm's version in index.json --- diff --git a/tools/dump-version-info.js b/tools/dump-version-info.js index c49f7588..e76f09ba 100644 --- a/tools/dump-version-info.js +++ b/tools/dump-version-info.js @@ -17,16 +17,10 @@ function getDate() { return year + '-' + month + '-' + day; } -function getApmVersion() { - var package = require(path.resolve(__dirname, '..', 'package.json')); - return package.devDependencies['atom-package-manager']; -} - function getInfoForCurrentVersion() { var json = {}; json.version = process.versions['atom-shell']; json.date = getDate(); - json.apm = getApmVersion(); var names = ['node', 'v8', 'uv', 'zlib', 'openssl', 'modules', 'chrome'] for (var i in names) {