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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apn-app-manager",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "Appian App Manager",
5
5
  "license": "Apache-2.0",
6
6
  "preferGlobal": true,
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 = util.outputCmd(`node -p "require('./package.json').version"`);
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`