Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Commit

Permalink
Use fs-extra instead of wrench (closes #71)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoCartier committed Aug 24, 2016
1 parent b7f4389 commit d315c24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
var fs = require('fs');
var fs = require('fs-extra');
var path = require('path');
var xml2js = require('xml2js');
var ig = require('imagemagick');
var colors = require('colors');
var _ = require('underscore');
var Q = require('q');
var wrench = require('wrench');
var argv = require('minimist')(process.argv.slice(2));

/**
Expand Down Expand Up @@ -183,7 +182,7 @@ var generateIcon = function (platform, icon) {
var dstPath = platform.iconsPath + icon.name;
var dst = path.dirname(dstPath);
if (!fs.existsSync(dst)) {
wrench.mkdirSyncRecursive(dst);
fs.mkdirsSync(dst);
}
ig.resize({
srcPath: srcPath,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"homepage": "https://github.com/AlexDisler/cordova-icon",
"dependencies": {
"colors": "^0.6.2",
"fs-extra": "^0.30.0",
"imagemagick": "^0.1.3",
"minimist": "^1.2.0",
"q": "^1.0.1",
Expand Down

0 comments on commit d315c24

Please sign in to comment.