Skip to content

Commit 38665f9

Browse files
committed
fix: replace backslash with forward slash
Signed-off-by: Francisco Buceta <frbuceta@gmail.com>
1 parent 103b9c1 commit 38665f9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cli/generators/copyright/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function jsOrTsFiles(cwd, paths = []) {
3737
});
3838
}
3939
paths = await Promise.all(globs);
40-
paths = _.flatten(paths);
40+
paths = _.map(_.flatten(paths), pathString => pathString.replace(/\\/g, '/'));
4141
return _.filter(paths, /\.(js|ts)$/);
4242
}
4343

packages/cli/test/integration/generators/clone-example.integration.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ describe('cloneExampleFromGitHub (SLOW)', /** @this {Mocha.Suite} */ function ()
2525
const actualFiles = await glob('**', {
2626
cwd: outDir,
2727
ignore: 'node_modules/**',
28+
}).then(result => {
29+
return result.map(pathString => pathString.replace(/\\/g, '/'));
2830
});
2931

3032
// We must not assume that the files downloaded from the current master

0 commit comments

Comments
 (0)