@modernpoacher/deps 2.0.27 → 2.0.28
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/execute/app.mjs +1 -1
- package/package.json +1 -1
- package/src/install/index.mjs +10 -2
package/bin/execute/app.mjs
CHANGED
package/package.json
CHANGED
package/src/install/index.mjs
CHANGED
|
@@ -126,7 +126,11 @@ export function installSaveExact (d, p, s, r, f) {
|
|
|
126
126
|
const {
|
|
127
127
|
stdout,
|
|
128
128
|
stderr
|
|
129
|
-
} = exec(commands, { ...OPTIONS, cwd: directory }, (e, v) =>
|
|
129
|
+
} = exec(commands, { ...OPTIONS, cwd: directory }, (e, v) => {
|
|
130
|
+
(!e)
|
|
131
|
+
? resolve(v)
|
|
132
|
+
: reject(e)
|
|
133
|
+
})
|
|
130
134
|
|
|
131
135
|
stdout.on('data', log)
|
|
132
136
|
stderr.on('data', log)
|
|
@@ -161,7 +165,11 @@ export function install (d, p, s, r, f) {
|
|
|
161
165
|
const {
|
|
162
166
|
stdout,
|
|
163
167
|
stderr
|
|
164
|
-
} = exec(commands, { ...OPTIONS, cwd: directory }, (e, v) =>
|
|
168
|
+
} = exec(commands, { ...OPTIONS, cwd: directory }, (e, v) => {
|
|
169
|
+
(!e)
|
|
170
|
+
? resolve(v)
|
|
171
|
+
: reject(e)
|
|
172
|
+
})
|
|
165
173
|
|
|
166
174
|
stdout.on('data', log)
|
|
167
175
|
stderr.on('data', log)
|