Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Fix main / module fields in package.json (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
frehner authored Dec 1, 2022
1 parent f1ffd57 commit b1989c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-cameras-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/hydrogen-react': patch
---

Fix issue with `package.json`'s `main` and `module` fields that were not updated to point to the new output directory structure.
5 changes: 3 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@
]
}
},
"main": "./dist/prod/index.js",
"module": "./dist/prod/index.mjs",
"main": "./dist/node-prod/index.js",
"module": "./dist/node-prod/index.mjs",
"browser": "./dist/browser-prod/index.mjs",
"types": "./dist/types/index.d.ts",
"unpkg": "./dist/umd/hydrogen-react.prod.js",
"jsdelivr": "./dist/umd/hydrogen-react.prod.js",
Expand Down

0 comments on commit b1989c9

Please sign in to comment.