commit | aca61e0088b139682dbb33ee257ff288a2a63c4e | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Fri Jun 15 00:46:15 2018 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Fri Jun 15 00:46:15 2018 +0200 |
tree | 98f41bd455107eef7fc031c8330ed76e9a55801e | |
parent | 307638d63604eb283b581c01a2e702ce39249473 [diff] |
Don't manually delete node_modules contents
diff --git a/index.js b/index.js index 5a666ef..5825084 100644 --- a/index.js +++ b/index.js
@@ -155,13 +155,6 @@ // from package.json if --save was used. return superspawn.spawn('npm', fetchArgs, opts); }) - .then(function (res) { - var pluginDest = path.join(dest, 'node_modules', target); - if (fs.existsSync(pluginDest)) { - shell.rm('-rf', pluginDest); - } - return res; - }) .catch(function (err) { throw new CordovaError(err); });