From 14d5ddd6603e21020eb47a046abc24d0c2a93e59 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 13 Feb 2020 12:39:04 +0100 Subject: [PATCH] fix(builtin): use posix paths in assembler Fixes #1635 --- internal/pkg_web/BUILD.bazel | 3 --- internal/pkg_web/assembler.js | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/pkg_web/BUILD.bazel b/internal/pkg_web/BUILD.bazel index 5a5aa7a1e6..f432a8aadb 100644 --- a/internal/pkg_web/BUILD.bazel +++ b/internal/pkg_web/BUILD.bazel @@ -31,9 +31,6 @@ nodejs_binary( jasmine_node_test( name = "assembler_test", srcs = ["assembler_spec.js"], - tags = [ - "fix-windows", - ], deps = [ "assembler.js", ], diff --git a/internal/pkg_web/assembler.js b/internal/pkg_web/assembler.js index 5533689fb9..f167e3091b 100644 --- a/internal/pkg_web/assembler.js +++ b/internal/pkg_web/assembler.js @@ -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));