Skip to content

Commit

Permalink
fix(builtin): use posix paths in assembler
Browse files Browse the repository at this point in the history
Fixes #1635
  • Loading branch information
alan-agius4 authored and alexeagle committed Feb 13, 2020
1 parent 1569f4b commit d635dca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions internal/pkg_web/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ nodejs_binary(
jasmine_node_test(
name = "assembler_test",
srcs = ["assembler_spec.js"],
tags = [
"fix-windows",
],
deps = [
"assembler.js",
],
Expand Down
3 changes: 2 additions & 1 deletion internal/pkg_web/assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ function main(params) {
function copy(f) {
if (fs.statSync(f).isDirectory()) {
for (const file of fs.readdirSync(f)) {
copy(path.join(f, file));
// Change paths to posix
copy(path.join(f, file).replace(/\\/g, '/'));
}
} else {
const dest = path.join(outdir, relative(f));
Expand Down

0 comments on commit d635dca

Please sign in to comment.