diff --git a/src/lib/Builder.ts b/src/lib/Builder.ts index e5b4d0d..a90cdc3 100644 --- a/src/lib/Builder.ts +++ b/src/lib/Builder.ts @@ -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, }); diff --git a/src/lib/util/index.ts b/src/lib/util/index.ts index 5cc8c35..5227051 100644 --- a/src/lib/util/index.ts +++ b/src/lib/util/index.ts @@ -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 {