append a newline to generated types

pull/14777/head
Ottomated 2 years ago
parent 29941f695e
commit 69ab3ee1c5

@ -46,6 +46,8 @@ await createBundle({
}
});
fs.appendFileSync(`${dir}/types/index.d.ts`, '\n');
const types = fs.readFileSync(`${dir}/types/index.d.ts`, 'utf-8');
const bad_links = [...types.matchAll(/\]\((\/[^)]+)\)/g)];

Loading…
Cancel
Save