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 92d2aad24..8d0d75ba7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -354,9 +354,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) {