Skip to content

Commit

Permalink
fix: support older tools with legacy entrypoint definitions (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-fricke committed Oct 24, 2023
1 parent 3858511 commit 96ce15c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/perfect-mangos-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"openapi-msw": patch
---

Add legacy entrypoint definitions (types, module) for tools and bundlers that
do not understand package.json#exports fields.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"README.md",
"LICENSE"
],
"sideEffects": false,
"types": "./dist/exports/main.d.ts",
"module": "./dist/exports/main.js",
"exports": {
".": {
"types": "./dist/exports/main.d.ts",
Expand Down

0 comments on commit 96ce15c

Please sign in to comment.