Skip to content

Commit

Permalink
fix imports from dist
Browse files Browse the repository at this point in the history
  • Loading branch information
JorrinKievit committed Jul 15, 2024
1 parent 2b81f9f commit afcb140
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .changeset/loud-terms-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tmdb-js-node": patch
"tmdb-js-web": patch
---

Fix imports from dist
15 changes: 9 additions & 6 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./dist/index.js": "./dist/index.js",
"./dist/index.mjs": "./dist/index.mjs",
"./dist/index.d.ts": "./dist/index.d.ts"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"scripts": {
"dev": "npm run build -- --watch",
Expand Down
15 changes: 9 additions & 6 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./dist/index.js": "./dist/index.js",
"./dist/index.mjs": "./dist/index.mjs",
"./dist/index.d.ts": "./dist/index.d.ts"
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"scripts": {
"dev": "npm run build -- --watch",
Expand Down

0 comments on commit afcb140

Please sign in to comment.