Skip to content

Commit f2c5d4d

Browse files
authored
Don't stall npm init on exit code (#1207)
* code = 1 on `npm outdated` however runs fine... possibly indicating deps are out date. * `oudated` presumes a depth of zero so remove that Auto-merge
1 parent db85a52 commit f2c5d4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/init.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ var tasks = [
157157
});
158158
},
159159
function (aStdouts, aCallback) {
160-
var cmd = 'npm --depth 0 outdated';
160+
var cmd = 'npm outdated';
161161

162162
exec(cmd, function (aErr, aStdout, aStderr) {
163-
if (aErr) {
163+
if (aErr && aErr.code !== 1) {
164164
aCallback(aErr);
165165
return;
166166
}

0 commit comments

Comments
 (0)