apn-app-manager 1.12.1 → 1.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +2 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const build = require("./actions/buildAction");
|
|
|
11
11
|
const package = require("./actions/packageAction");
|
|
12
12
|
const prompt = require("./handlers/promptHandler");
|
|
13
13
|
const aim = require("./handlers/importHandler");
|
|
14
|
+
const pkg = require("../package.json");
|
|
14
15
|
|
|
15
16
|
// Option declarations
|
|
16
17
|
const options = {
|
|
@@ -86,7 +87,7 @@ function execAction(params) {
|
|
|
86
87
|
// Informs the user if there is a new version of the plugin available
|
|
87
88
|
function displayNewVersion() {
|
|
88
89
|
let publicVersion = util.outputCmd("npm view apn-app-manager version");
|
|
89
|
-
let thisVersion =
|
|
90
|
+
let thisVersion = pkg.version;
|
|
90
91
|
if (publicVersion != thisVersion && publicVersion.length > 0) {
|
|
91
92
|
util.printWarning(
|
|
92
93
|
`*** New version of apn-app-manager (${publicVersion}) is available.\n *** You are on version ${thisVersion}. Recommend upgrading via \`npm i -g apn-app-manager\`.\n`
|