From afcb140b57ddc7125deb5445089cb1168be09781 Mon Sep 17 00:00:00 2001 From: Jorrin Date: Mon, 15 Jul 2024 02:07:13 +0200 Subject: [PATCH] fix imports from dist --- .changeset/loud-terms-jump.md | 6 ++++++ packages/node/package.json | 15 +++++++++------ packages/web/package.json | 15 +++++++++------ 3 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 .changeset/loud-terms-jump.md diff --git a/.changeset/loud-terms-jump.md b/.changeset/loud-terms-jump.md new file mode 100644 index 0000000..725292d --- /dev/null +++ b/.changeset/loud-terms-jump.md @@ -0,0 +1,6 @@ +--- +"tmdb-js-node": patch +"tmdb-js-web": patch +--- + +Fix imports from dist diff --git a/packages/node/package.json b/packages/node/package.json index bb899c0..b7c3be8 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -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", diff --git a/packages/web/package.json b/packages/web/package.json index 9f95d63..26b2a0d 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -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",