diff --git a/package.json b/package.json index 704dfdb3..b7cd796e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xpadev-net/niconicomments", - "version": "0.2.39", + "version": "0.2.40", "description": "NiconiComments is a comment drawing library that is somewhat compatible with the official Nico Nico Douga player.", "main": "dist/bundle.js", "types": "dist/bundle.d.ts", diff --git a/util/bundle-dts.js b/util/bundle-dts.js index 93e3ebbd..cb8a2614 100644 --- a/util/bundle-dts.js +++ b/util/bundle-dts.js @@ -17,5 +17,5 @@ const processDir = (dir = "./dist/") => { processDir(); -fs.writeFileSync("./dist/bundle.d.ts",output.join("\n").replace(/export (default|\{).+;/g,"").replace(/import type \{.*?;/g,"").replace(/import\(".+?"\)\./,"").replace(/\/\/# sourceMappingURL=.+\.d\.ts\.map/g,"")+"\nexport default NiconiComments;"); +fs.writeFileSync("./dist/bundle.d.ts",output.join("\n").replace(/export (default|\{).+;/g,"").replace(/import type \{[\s\S]*?} from "@\/@types\/.+?";/g,"").replace(/import\(".+?"\)\./g,"").replace(/\/\/# sourceMappingURL=.+\.d\.ts\.map/g,"")+"\nexport default NiconiComments;");