From a31e05adfb002124ad2696ea9ada28dd130f4b9f Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 10 Sep 2023 19:08:15 +0200 Subject: [PATCH] Fix types and tsconfigs --- package.json | 14 ++++++++++---- src/__test__/tsconfig.json | 9 +++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index affc425..1f963d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@movie-web/providers", - "version": "0.0.9", + "version": "0.0.10", "description": "Package that contains all the providers of movie-web", "main": "./lib/index.umd.js", "types": "./lib/index.d.ts", @@ -9,9 +9,15 @@ ], "exports": { ".": { - "import": "./lib/index.mjs", - "require": "./lib/index.umd.js", - "types": "./lib/index.d.ts" + "types": "./lib/index.d.ts", + "import": { + "default": "./lib/index.mjs.js", + "types": "./lib/index.d.ts" + }, + "require": { + "default": "./lib/index.umd.js", + "types": "./lib/index.d.ts" + } } }, "repository": { diff --git a/src/__test__/tsconfig.json b/src/__test__/tsconfig.json index fc17519..238d5f2 100644 --- a/src/__test__/tsconfig.json +++ b/src/__test__/tsconfig.json @@ -1,12 +1,13 @@ { "compilerOptions": { - "target": "ES2022", - "lib": ["ES2022"], - "module": "ES2022", + "target": "esnext", + "lib": ["esnext"], + "module": "esnext", + "moduleResolution": "node", "declaration": true, "outDir": "./lib", "strict": true, - "moduleResolution": "NodeNext", + "esModuleInterop": true, "allowImportingTsExtensions": true, "noEmit": true, "experimentalDecorators": true,