Skip to content

Commit ac8cc9c

Browse files
committed
fix: CLI fails to build due to upgrade of glob module
1 parent a130bab commit ac8cc9c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/cli/webpack/webpack.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ const common = {
3030
context: contextFolder,
3131
target: 'node',
3232
entry:
33-
glob.sync('./src/commands/**/*.ts').reduce((map, file) => Object.assign(map, {
33+
glob.sync(
34+
'./src/commands/**/*.ts',
35+
{
36+
dotRelative: true,
37+
nocase: true,
38+
nodir: true,
39+
posix: true
40+
}
41+
).reduce((map, file) => Object.assign(map, {
3442
[file.replace(/^.*commands[\//]([^.]+)\.ts$/i, 'commands/$1')]: {
3543
dependOn: 'cli',
3644
import: file,

0 commit comments

Comments
 (0)