Skip to content

Commit

Permalink
fix(api-client): default type exports to fix bundler module resolut…
Browse files Browse the repository at this point in the history
…ion (#567)
  • Loading branch information
patzick authored and BrocksiNet committed Feb 20, 2024
1 parent f8a9a47 commit c6977fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/large-swans-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shopware/api-client": patch
---

Export default API types to be compatible with the `bundler` mode resolution in `tsconfig`
4 changes: 3 additions & 1 deletion packages/api-client-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
}
},
"./api-types": "./api-types/storeApiTypes.d.ts",
"./admin-api-types": "./admin-api-types/adminApiTypes.d.ts"
},
"scripts": {
"build": "export NODE_ENV=production && unbuild && pnpm build:types",
Expand Down

0 comments on commit c6977fc

Please sign in to comment.