now reading version from package.json

This commit is contained in:
Philipp Kunz 2016-05-30 03:19:07 +02:00
parent b0f8134afa
commit 922d052287
2 changed files with 6 additions and 3 deletions

5
dist/index.js vendored
View File

@ -2,7 +2,8 @@
"use strict"; "use strict";
require("typings-global"); require("typings-global");
var plugins = require("./npmci.plugins"); var plugins = require("./npmci.plugins");
plugins.beautylog.log("npmci in version 1.0.10"); var packJson = require("../package.json");
plugins.beautylog.log("npmci in version" + packJson.version);
var npmci_install_1 = require("./npmci.install"); var npmci_install_1 = require("./npmci.install");
var npmci_test_1 = require("./npmci.test"); var npmci_test_1 = require("./npmci.test");
var npmci_publish_1 = require("./npmci.publish"); var npmci_publish_1 = require("./npmci.publish");
@ -33,4 +34,4 @@ switch (command) {
break; break;
} }
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQ3hCLElBQVksT0FBTyxXQUFNLGlCQUFpQixDQUFDLENBQUE7QUFFM0MsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMseUJBQXlCLENBQUMsQ0FBQztBQUVqRCw4QkFBc0IsaUJBQWlCLENBQUMsQ0FBQTtBQUN4QywyQkFBbUIsY0FBYyxDQUFDLENBQUE7QUFDbEMsOEJBQXNCLGlCQUFpQixDQUFDLENBQUE7QUFHeEMsSUFBSSxPQUFPLENBQUM7QUFDWixJQUFJLGFBQWEsQ0FBQztBQUVsQixPQUFPLENBQUMsU0FBUztLQUNaLFNBQVMsQ0FBQyxpQ0FBaUMsQ0FBQztLQUM1QyxNQUFNLENBQUMsVUFBVSxVQUFVLEVBQUUsZ0JBQWdCO0lBQzFDLE9BQU8sR0FBRyxVQUFVLENBQUM7SUFDckIsYUFBYSxHQUFHLGdCQUFnQixDQUFDO0FBQ3JDLENBQUMsQ0FBQyxD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JcbiAgICB9KTtcclxuIFxyXG5wbHVnaW5zLmNvbW1hbmRlci5wYXJzZShwcm9jZXNzLmFyZ3YpO1xyXG4gXHJcbmlmICh0eXBlb2YgY29tbWFuZCA9PT0gJ3VuZGVmaW5lZCcpIHtcclxuICAgIGNvbnNvbGUuZXJyb3IoJ25vIGNvbW1hbmQgZ2l2ZW4hJyk7XHJcbiAgICBwcm9jZXNzLmV4aXQoMSk7XHJcbn1cclxuXHJcbnN3aXRjaCAoY29tbWFuZCl7XHJcbiAgICBjYXNlIFwiaW5zdGFsbFwiOlxyXG4gICAgICAgIGluc3RhbGwoY29tbWFuZE9wdGlvbik7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICBjYXNlIFwidGVzdFwiOlxyXG4gICAgICAgIHRlc3QoY29tbWFuZE9wdGlvbik7XHJcbiAgICAgICAgYnJlYWs7XHJcbiAgICBjYXNlIFwicHVibGlzaFwiOlxyXG4gICAgICAgIHB1Ymxpc2goKTtcclxuICAgICAgICBicmVhaztcclxuICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgYnJlYWs7XHJcbn1cclxuXHJcbiJdfQ==

View File

@ -2,7 +2,9 @@
import "typings-global"; import "typings-global";
import * as plugins from "./npmci.plugins"; import * as plugins from "./npmci.plugins";
plugins.beautylog.log("npmci in version 1.0.10"); let packJson = require("../package.json");
plugins.beautylog.log("npmci in version" + packJson.version);
import {install} from "./npmci.install"; import {install} from "./npmci.install";
import {test} from "./npmci.test"; import {test} from "./npmci.test";