Skip to content

Commit

Permalink
Fix exports and types in package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrizagidulin committed Dec 30, 2023
1 parent e7ca2a8 commit 6c5169b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@
},
"files": [
"dist",
"src",
"README.md",
"LICENSE.md"
],
"main": "dist/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"types": "src/declarations.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/esm/index.js"
},
"./package.json": "./package.json"
},
"devDependencies": {
"@types/node": "^20.4.6",
"@typescript-eslint/eslint-plugin": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["es2022", "dom"],
"module": "es6",
"moduleResolution": "node",
"outDir": "dist",
"outDir": "dist/esm",
"noImplicitAny": true,
"removeComments": false,
"preserveConstEnums": true,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["es2022", "dom"],
"module": "commonjs",
"moduleResolution": "node",
"outDir": "dist/esm",
"outDir": "dist",
"noImplicitAny": true,
"removeComments": false,
"preserveConstEnums": true,
Expand Down

0 comments on commit 6c5169b

Please sign in to comment.