Skip to content

Commit

Permalink
Merge pull request #3 from rwjblue/fallback-to-copying-on-windows
Browse files Browse the repository at this point in the history
Use symlink-or-copy to allow fallback to copying on Windows.
  • Loading branch information
rwjblue committed Oct 5, 2014
2 parents d274d1a + 1cce01c commit b5d6418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var Writer = require('broccoli-writer');
var walkSync = require('walk-sync');
var rimraf = require('rimraf');
var mkdirp = require('mkdirp');
var symlinkOrCopy = require('symlink-or-copy');

Remover.prototype = Object.create(Writer.prototype);
Remover.prototype.constructor = Remover;
Expand Down Expand Up @@ -36,7 +37,7 @@ Remover.prototype._linkDeeply = function _linkDeeply(source, destination) {
linkPath = fs.readlinkSync(linkPath);
}

fs.symlinkSync(path.resolve(process.cwd(), linkPath), destination + '/' + relativePath)
symlinkOrCopy.sync(path.resolve(process.cwd(), linkPath), destination + '/' + relativePath)
}
}
};
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
],
"dependencies": {
"broccoli-writer": "~0.1.1",
"mkdirp": "~0.5.0",
"rimraf": "~2.2.8",
"walk-sync": "^0.1.3",
"mkdirp": "~0.5.0"
"symlink-or-copy": "^1.0.0",
"walk-sync": "^0.1.3"
},
"devDependencies": {
"mocha": "~1.18.2",
Expand Down

0 comments on commit b5d6418

Please sign in to comment.