From 911cdd809a0883ab181bb6859906fb54b6f72b86 Mon Sep 17 00:00:00 2001 From: Nitish Sakhawalkar Date: Mon, 3 Jun 2019 11:43:55 -0700 Subject: [PATCH] Update gen-filenames.js to generate posix paths (#18488) --- script/gen-filenames.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gen-filenames.js b/script/gen-filenames.js index 6e4a7cb7a7d3..1fec22facd97 100644 --- a/script/gen-filenames.js +++ b/script/gen-filenames.js @@ -68,7 +68,7 @@ const main = async () => { // Remove whitespace .map(line => line.trim()) // Get the relative path - .map(line => path.relative(rootPath, line)) + .map(line => path.relative(rootPath, line).replace(/\\/g, '/')) // Only care about files in //electron .filter(line => !line.startsWith('..')) // Only care about our own files