Generated Index.d.ts
This commit is contained in:
1 parent
7c984035b7
commit
e6311e64f4
1 file changed
+9
@@ -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"))
|
||||
Reference in new issue
Block a user