Skip to content

Commit 62756a7

Browse files
committed
Include apm version in index.json
1 parent 87cd762 commit 62756a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

script/dump_info.js renamed to script/dump-version-info.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var app = require('app');
22
var fs = require('fs');
3+
var path = require('path');
34
var request = require('request');
45

56
var TARGET_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/index.json';
@@ -16,10 +17,16 @@ function getDate() {
1617
return year + '-' + month + '-' + day;
1718
}
1819

20+
function getApmVersion() {
21+
var package = require(path.resolve(__dirname, '..', 'package.json'));
22+
return package.devDependencies['atom-package-manager'];
23+
}
24+
1925
function getInfoForCurrentVersion() {
2026
var json = {};
2127
json.version = process.versions['atom-shell'];
2228
json.date = getDate();
29+
json.apm = getApmVersion();
2330

2431
var names = ['v8', 'uv', 'zlib', 'openssl', 'modules', 'chrome']
2532
for (var i in names) {

0 commit comments

Comments
 (0)