Fixed Issue #1 & updated Version

This commit is contained in:
Marcel Lorbeer 2023-07-18 17:37:18 +02:00
parent a0e7e39207
commit 4f4a6c7f23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "marcsync",
"version": "1.1.1-dev",
"version": "1.1.2-dev",
"description": "A NodeJS MarcSync Client to communicate with MarcSync's API",
"main": "dist/marcsync.js",
"types": "dist/index.d.ts",