Browse Source

Update gen-filenames.js to generate posix paths (#18488)

Nitish Sakhawalkar 5 years ago
parent
commit
911cdd809a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/gen-filenames.js

+ 1 - 1
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