fix(type-generator): make the generated by message consistent on windows (#4888)

This commit is contained in:
Joel Einbinder 2021-01-05 06:42:38 -08:00 committed by GitHub
parent 80f8a0fdf5
commit 4a89158293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ let hadChanges = false;
return classBody(docClassForName(className));
});
const classes = documentation.classesArray.filter(cls => !handledClasses.has(cls.name));
let output = `// This file is generated by ${__filename.substring(path.join(__dirname, '..', '..').length)}
let output = `// This file is generated by ${__filename.substring(path.join(__dirname, '..', '..').length).split(path.sep).join(path.posix.sep)}
${overrides}
${classes.map(classDesc => classToString(classDesc)).join('\n')}