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

This commit is contained in:
Nitish Sakhawalkar 2019-06-03 11:43:55 -07:00 committed by Jeremy Apthorp
parent 7f369c3292
commit 911cdd809a

View file

@ -68,7 +68,7 @@ const main = async () => {
// Remove whitespace // Remove whitespace
.map(line => line.trim()) .map(line => line.trim())
// Get the relative path // Get the relative path
.map(line => path.relative(rootPath, line)) .map(line => path.relative(rootPath, line).replace(/\\/g, '/'))
// Only care about files in //electron // Only care about files in //electron
.filter(line => !line.startsWith('..')) .filter(line => !line.startsWith('..'))
// Only care about our own files // Only care about our own files