Generated Index.d.ts

This commit is contained in:
Marcel Lorbeer 2023-06-30 21:38:35 +02:00
parent 7c984035b7
commit e6311e64f4

9
generate-indexdts.js Normal file
View File

@ -0,0 +1,9 @@
const fs = require("fs");
const files = []
fs.readdirSync("dist").filter( f => f.endsWith(".d.ts") ).forEach( f => {
files.push(`export * from "./${f}"`)
});
fs.writeFileSync("dist/index.d.ts", files.join("\n"))