Fix types and tsconfigs

This commit is contained in:
mrjvs
2023-09-10 19:08:15 +02:00
parent 0baf4e46aa
commit a31e05adfb
2 changed files with 15 additions and 8 deletions

View File

@@ -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": {

View File

@@ -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,