@@ -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,
});
@@ -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 {