Merge pull request #34 from itsMapleLeaf/fix-type-definitions
This commit is contained in:
9
.changeset/fuzzy-monkeys-sleep.md
Normal file
9
.changeset/fuzzy-monkeys-sleep.md
Normal 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"`
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user