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", "name": "@movie-web/providers",
"version": "0.0.9", "version": "0.0.10",
"description": "Package that contains all the providers of movie-web", "description": "Package that contains all the providers of movie-web",
"main": "./lib/index.umd.js", "main": "./lib/index.umd.js",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",
@@ -9,9 +9,15 @@
], ],
"exports": { "exports": {
".": { ".": {
"import": "./lib/index.mjs", "types": "./lib/index.d.ts",
"require": "./lib/index.umd.js", "import": {
"default": "./lib/index.mjs.js",
"types": "./lib/index.d.ts" "types": "./lib/index.d.ts"
},
"require": {
"default": "./lib/index.umd.js",
"types": "./lib/index.d.ts"
}
} }
}, },
"repository": { "repository": {

View File

@@ -1,12 +1,13 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ES2022", "target": "esnext",
"lib": ["ES2022"], "lib": ["esnext"],
"module": "ES2022", "module": "esnext",
"moduleResolution": "node",
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,
"moduleResolution": "NodeNext", "esModuleInterop": true,
"allowImportingTsExtensions": true, "allowImportingTsExtensions": true,
"noEmit": true, "noEmit": true,
"experimentalDecorators": true, "experimentalDecorators": true,