kraken-devtools
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "kraken-devtools", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A development mode toolkit for kraken", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -73,11 +73,27 @@ /*───────────────────────────────────────────────────────────────────────────*\ | ||
mkdirp(path.dirname(destFile), function(err) { | ||
if (err) { | ||
//check if the srcFile exists | ||
fs.exists(srcFile, function (exists) { | ||
var err; | ||
if (!exists) { | ||
err = new Error('File not found:', srcFile); | ||
err.code = 'ENOENT'; | ||
callback(err); | ||
return; | ||
} else { | ||
mkdirp(path.dirname(destFile), function(err) { | ||
if (err) { | ||
callback(err); | ||
return; | ||
} | ||
fs.createReadStream(srcFile) | ||
.pipe(fs.createWriteStream(destFile) | ||
.on('finish', function() { | ||
callback(null, config); | ||
}) | ||
.on('error', callback)); | ||
}); | ||
} | ||
fs.createReadStream(srcFile).pipe(fs.createWriteStream(destFile)); | ||
callback(null, config); | ||
}); | ||
}); | ||
}; | ||
@@ -84,0 +100,0 @@ |
@@ -65,1 +65,2 @@ kraken-devtools | ||
Thanks to [iantocristian](http://github.com/iantocristian) we now have [browserify support for kraken-devtools](https://github.com/iantocristian/kraken-devtools-browserify) | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40426
569
66