From 6139efef20f7ecb93247927f11b5d290fe48d694 Mon Sep 17 00:00:00 2001 From: Fabian Irsara Date: Thu, 14 Jan 2016 23:34:44 +0100 Subject: [PATCH] swap out del with rimraf --- app/updater.js | 6 +++--- package.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/updater.js b/app/updater.js index 8dec9b0..d129f04 100644 --- a/app/updater.js +++ b/app/updater.js @@ -5,7 +5,7 @@ var exec = require('child_process').exec; var spawn = require('child_process').spawn; var ncp = require('ncp'); - var del = require('del'); + var rimraf = require('rimraf'); var semver = require('semver'); var gui = global.window.nwDispatcher.requireNwGui(); @@ -260,7 +260,7 @@ fs.exists(destinationDirectory, function(exists){ if(exists) { - del(destinationDirectory, {force: true}, function (err) { + rimraf(destinationDirectory, function (err) { if (err) { cb(err); } @@ -398,7 +398,7 @@ cb(); } } else { - del(to, {force: true}, cb); + rimraf(to, cb); } } function appCopied(err){ diff --git a/package.json b/package.json index 7408d35..95afbe4 100644 --- a/package.json +++ b/package.json @@ -28,9 +28,9 @@ "dependencies": { "ncp": "^0.5.1", "request": "~2.36.0", - "tar.gz": "^0.1.1", - "del": "~0.1.2", - "semver": "^3.0.1" + "rimraf": "^2.5.0", + "semver": "^3.0.1", + "tar.gz": "^0.1.1" }, "devDependencies": { "grunt-contrib-clean": "^0.5.0",