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

Commit

Permalink
fix(Builder): fix crashes on symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
evshiron committed Apr 19, 2017
1 parent 4510a28 commit f615850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/Builder.ts
Expand Up @@ -316,6 +316,8 @@ export class Builder {

const files = await globby(config.files, {
cwd: this.dir,
// TODO: https://github.com/isaacs/node-glob#options, warn for cyclic links.
follow: true,
mark: true,
ignore,
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/index.ts
Expand Up @@ -233,7 +233,7 @@ export async function copyFileAsync(src: string, dest: string) {

const stats = await lstatAsync(src);

if(stats.isDirectory()) {
if(stats.isDirectory() || stats.isSymbolicLink()) {
//await ensureDirAsync(dest);
}
else {
Expand Down

0 comments on commit f615850

Please sign in to comment.