chore: get rid of trailing spaces in types.d.ts (#6481)

This commit is contained in:
Max Schmitt 2021-05-10 16:26:11 +02:00 committed by GitHub
parent 76e409637a
commit 5f7739962c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 876 additions and 874 deletions

1748
types/types.d.ts vendored

File diff suppressed because it is too large Load diff

View file

@ -106,6 +106,8 @@ export interface ChromiumCoverage extends Coverage { }
`;
for (const [key, value] of Object.entries(exported))
output = output.replace(new RegExp('\\b' + key + '\\b', 'g'), value);
// remove trailing whitespace
output = output.replace(/( +)\n/g, '\n');
writeFile(path.join(typesDir, 'types.d.ts'), output);
process.exit(hadChanges && process.argv.includes('--check-clean') ? 1 : 0);
})().catch(e => {