Skip to content

Commit

Permalink
Update package.json (#216)
Browse files Browse the repository at this point in the history
* Update package.json

Fixes the issue:
```
There are types at '/home/xxx/node_modules/robot3/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'robot3' library may need to update its package.json or typings.

* Update package.json

* Create six-terms-shake.md
  • Loading branch information
lveillard authored Oct 30, 2024
1 parent 26cefe6 commit 0dc1c1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .changeset/six-terms-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"robot3": patch
---

### WHAT:

Explicitly routing the right place for the index.d.ts file

### WHY:

Types fail to load in some scenarios. F.i PNPM throws the error: "There are types at '/xxxx/node_modules/robot3/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'robot3' library may need to update its package.json or typings."

### HOW:

Added types path for exports in package.json
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"exports": {
".": {
"require": "./dist/machine.js",
"types": "./index.d.ts",
"import": "./machine.js",
"default": "./machine.js",
"types": "./index.d.ts"
Expand Down

0 comments on commit 0dc1c1a

Please sign in to comment.