Skip to content

Commit

Permalink
Merge pull request #34 from itsMapleLeaf/fix-type-definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
itsMapleLeaf authored Sep 28, 2023
2 parents b210670 + 41c87e3 commit 47c9b75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .changeset/fuzzy-monkeys-sleep.md
Original file line number Diff line number Diff line change
@@ -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"`
2 changes: 1 addition & 1 deletion packages/reacord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -25,6 +24,7 @@
"README.md",
"LICENSE"
],
"types": "./library/main.ts",
"exports": {
".": {
"import": "./dist/main.js",
Expand Down

0 comments on commit 47c9b75

Please sign in to comment.