Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinmetcalf committed May 27, 2020
1 parent e1c6860 commit 05eef5e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
7 changes: 2 additions & 5 deletions index.js
Expand Up @@ -111,15 +111,12 @@ function copyFiles(args, config, callback) {
}
var outName = path.join(outDir, dealWith(pathName, opts));
function done(){
mkdirp(path.dirname(outName), function (err) {
if (err) {
return next(err);
}
mkdirp(path.dirname(outName)).then(()=>{
next(null, {
pathName: pathName,
pathStat: pathStat
});
});
}, next);
}
if (pathStat.isDirectory()) {
debug(`skipping, is directory: ${pathName}`)
Expand Down
20 changes: 6 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"glob": "^7.0.5",
"minimatch": "^3.0.3",
"mkdirp": "^0.5.1",
"mkdirp": "^1.0.4",
"noms": "0.0.0",
"through2": "^2.0.1",
"yargs": "^15.3.1"
Expand Down
8 changes: 6 additions & 2 deletions test/test.fromNode.js
Expand Up @@ -3,10 +3,14 @@ var test = require('tape');
var copyfiles = require('../');
var rimraf = require('rimraf');
var fs = require('fs');
var mkdirp = require('mkdirp');
var _mkdirp = require('mkdirp');
var cp = require('child_process');
var glob = require('glob');

const mkdirp = (path, cb) => {
_mkdirp(path).then(()=>{
cb();
}, cb);
}
function after(t) {
rimraf('output', function (err) {
t.error(err, 'rm out');
Expand Down

0 comments on commit 05eef5e

Please sign in to comment.