diff --git a/lib/cmds/reset.js b/lib/cmds/reset.js deleted file mode 100644 index 557e7b67f..000000000 --- a/lib/cmds/reset.js +++ /dev/null @@ -1,8 +0,0 @@ -var fs = require('../core/fs.js'); - -module.exports = function() { - fs.removeSync('./chains.json'); - fs.removeSync('.embark/'); - fs.removeSync('dist/'); - console.log(__("reset done!").green); -}; diff --git a/lib/index.js b/lib/index.js index e9196bf07..affc1c027 100644 --- a/lib/index.js +++ b/lib/index.js @@ -351,9 +351,11 @@ class Embark { } reset() { - this.context = [constants.contexts.reset]; - let resetCmd = require('./cmds/reset.js'); - resetCmd(); + var fs = require('../core/fs.js'); + fs.removeSync('./chains.json'); + fs.removeSync('.embark/'); + fs.removeSync('dist/'); + console.log(__("reset done!").green); } upload(options) {