chore: get rid of trailing spaces in types.d.ts (#6481)
This commit is contained in:
parent
76e409637a
commit
5f7739962c
1748
types/types.d.ts
vendored
1748
types/types.d.ts
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue