diff --git a/lib/tools/meteor.js b/lib/tools/meteor.js index 1e05255..0e41d88 100644 --- a/lib/tools/meteor.js +++ b/lib/tools/meteor.js @@ -4,6 +4,7 @@ var Future = require('fibers/future'); var path = require('path'); var fs = require('fs'); var _ = require('underscore'); +var del = require('delete'); module.exports = {}; @@ -32,9 +33,11 @@ module.exports.createEmptyMeteorProject = function createEmptyMeteorProject(name _.each(fs.readdirSync(appDirectory), function (entryPath) { if (entryPath === '.git') return; if (entryPath === '.meteor') return; - fs.unlinkSync(path.join(appDirectory, entryPath)); + // depreciate fs and use del instead. + //fs.unlinkSync(path.join(appDirectory, entryPath)); + del.sync(path.join(appDirectory, entryPath)); }); - } finally { + } finally { // stop the spinny thing spinHandle.stop(); } diff --git a/package.json b/package.json index 784382f..f336e1f 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,14 @@ "license": "MIT", "dependencies": { "cli-color": "0.2.3", - "minimist": "0.0.8", - "underscore": "1.8.3", "cli-table": "0.3.0", + "delete": "^0.3.0", "ejs": "0.8.5", "fibers": "1.0.8", - "single-line-log": "0.4.1", + "minimist": "0.0.8", "shell-source": "1.1.0", + "single-line-log": "0.4.1", + "underscore": "1.8.3", "xtend": "^4.0.0" }, "bin": {