Glob pattern should list paths directly to folders with specified keyword (#119)
@W-4271155@
This commit is contained in:
Родитель
a95afa06c1
Коммит
e8abbb5fd1
|
@ -276,7 +276,7 @@ export class SelectPrioritizedDirPath extends SelectDirPath {
|
|||
export class SelectStrictDirPath extends SelectDirPath {
|
||||
public globDirs(srcPath: string, priorityKeyword?: string): string[] {
|
||||
const globPattern = priorityKeyword
|
||||
? path.join(srcPath, '**/', priorityKeyword + '/**/')
|
||||
? path.join(srcPath, '**/', priorityKeyword + '/')
|
||||
: path.join(srcPath, '**/');
|
||||
const relativeDirs = new glob.GlobSync(globPattern).found.map(value => {
|
||||
let relativePath = path.relative(srcPath, path.join(value, '/'));
|
||||
|
|
Загрузка…
Ссылка в новой задаче