fix typedefs

This commit is contained in:
itsMapleLeaf
2023-09-28 12:20:58 -05:00
parent b210670b2a
commit 41c87e3dcc
2 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
---
"reacord": patch
---
fix type definitions
`"types"` wasn't updated, oops!
technically the typedefs were already correctly defined via `"exports"`, but this may not be picked up depending on the tsconfig, so I'll ensure both are used for compatibility purposes. but this might be worth a note in the docs; pretty much every modern TS Node project should be using a tsconfig that doesn't require setting `"types"`

View File

@@ -3,7 +3,6 @@
"type": "module",
"description": "Create interactive Discord messages using React.",
"version": "0.5.3",
"types": "./dist/main.d.ts",
"homepage": "https://reacord.mapleleaf.dev",
"repository": "https://github.com/itsMapleLeaf/reacord.git",
"changelog": "https://github.com/itsMapleLeaf/reacord/releases",
@@ -25,6 +24,7 @@
"README.md",
"LICENSE"
],
"types": "./library/main.ts",
"exports": {
".": {
"import": "./dist/main.js",