Skip to content

Commit

Permalink
Fix: handle Windows paths
Browse files Browse the repository at this point in the history
Since glob@9, glob pattern require `/` as path separator (see isaacs/node-glob#480)
  • Loading branch information
Clémence Mousset committed Apr 26, 2023
1 parent 3239b76 commit 7fea133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/tasks/extract.task.ts
Expand Up @@ -146,7 +146,8 @@ export class ExtractTask implements TaskInterface {
* Get all files matching pattern
*/
protected getFiles(pattern: string): string[] {
return sync(pattern).filter((filePath) => fs.statSync(filePath).isFile());
const posixPattern = pattern.split(path.sep).join(path.posix.sep);
return sync(posixPattern).filter((filePath) => fs.statSync(filePath).isFile());
}

protected out(...args: any[]): void {
Expand Down

0 comments on commit 7fea133

Please sign in to comment.