npq 3.16.2 → 3.16.3

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/bin/npq-hero.js CHANGED
@@ -105,7 +105,12 @@ marshall
105
105
  Object.prototype.hasOwnProperty.call(status, 'install') &&
106
106
  status.install === true
107
107
  ) {
108
- pkgMgr.process(PACKAGE_MANAGER_TOOL)
108
+ return pkgMgr.process(PACKAGE_MANAGER_TOOL)
109
+ }
110
+ })
111
+ .then((exitCode) => {
112
+ if (typeof exitCode === 'number') {
113
+ process.exitCode = exitCode
109
114
  }
110
115
  })
111
116
  .catch((error) => {
package/bin/npq.js CHANGED
@@ -130,7 +130,12 @@ Promise.resolve()
130
130
  Object.prototype.hasOwnProperty.call(status, 'install') &&
131
131
  status.install === true
132
132
  ) {
133
- pkgMgr.process(cliArgs.packageManager)
133
+ return pkgMgr.process(cliArgs.packageManager)
134
+ }
135
+ })
136
+ .then((exitCode) => {
137
+ if (typeof exitCode === 'number') {
138
+ process.exitCode = exitCode
134
139
  }
135
140
  })
136
141
  .catch((error) => {
@@ -32,7 +32,11 @@ class packageManager {
32
32
  shell: true
33
33
  })
34
34
 
35
- return Promise.resolve(child)
35
+ return new Promise((resolve) => {
36
+ child.on('close', (code) => {
37
+ resolve(code)
38
+ })
39
+ })
36
40
  }
37
41
 
38
42
  static validatePackageManager(packageManagerOption) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npq",
3
- "version": "3.16.2",
3
+ "version": "3.16.3",
4
4
  "description": "marshall your npm/npm package installs with high quality and class 🎖",
5
5
  "bin": {
6
6
  "npq": "./bin/npq.js",