Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
Fix deep directory generation
Browse files Browse the repository at this point in the history
Fixes #16
  • Loading branch information
leebyron committed Nov 4, 2016
1 parent ebc74f3 commit 1ca90d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var temp, onNeck, purchaseBowtie = function(){ return 'tie' };

var inBag = purchaseBowtie()
(temp = onNeck, onNeck = inBag, inBag = temp)
2 changes: 1 addition & 1 deletion flow-remove-types
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ for (var i = 0; i < sources.length; i++) {
var content = fs.readFileSync(source, 'utf8');
var result = transformSource(content, source);
if (outDir) {
mkdirp(path.dirname(path.join(outDir, source)));
outFile = path.join(outDir, isDirSource ? path.relative(sources[0], source) : source);
mkdirp(path.dirname(outFile));
}
if (outFile) {
fs.writeFileSync(outFile, result);
Expand Down

0 comments on commit 1ca90d3

Please sign in to comment.