Skip to content

Commit 3ef4bcd

Browse files
author
Ilya Radchenko
committed
Add cleanup phase if using specific node version
Have `n` return the version of node to the previous version.
1 parent 7241e44 commit 3ef4bcd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

worker.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ module.exports = {
7373

7474
async.series(tasks, done);
7575
}
76-
// cleanup: 'rm -rf node_modules'
7776
};
7877

7978
if (config.test && config.test !== '<none>') {
@@ -97,6 +96,11 @@ module.exports = {
9796
cmd: 'n ' + (config.fork === 'io.js' ? 'io ' : '') + config.runtime,
9897
silent: true
9998
};
99+
100+
ret.cleanup = {
101+
cmd: 'n prev',
102+
silent: true
103+
};
100104
}
101105

102106
cb(null, ret);

0 commit comments

Comments
 (0)