diff --git a/packages/boot/src/booters/base-artifact.booter.ts b/packages/boot/src/booters/base-artifact.booter.ts index 88e535ad43ee..c3331a43656b 100644 --- a/packages/boot/src/booters/base-artifact.booter.ts +++ b/packages/boot/src/booters/base-artifact.booter.ts @@ -91,12 +91,12 @@ export class BaseArtifactBooter implements Booter { : [this.options.extensions] : []; - const joinedDirs = this.dirs.join('|'); + const joinedDirs = this.dirs.join(','); const joinedExts = this.extensions.join('|'); this.glob = this.options.glob ? this.options.glob - : `/@(${joinedDirs})/${ + : `/{${joinedDirs}}/${ this.options.nested ? '**/*' : '*' }@(${joinedExts})`; }