Skip to content

Commit

Permalink
fix: fix esm type declarations under node16 module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
igordanchenko committed May 10, 2023
1 parent 10ddde9 commit 4876ba3
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 97 deletions.
168 changes: 84 additions & 84 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": [
"dist"
Expand Down Expand Up @@ -49,15 +54,15 @@
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@types/react": "^18.2.5",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@vitejs/plugin-react": "^4.0.0",
"@vitest/coverage-c8": "^0.31.0",
"@vitest/ui": "^0.31.0",
"eslint": "^8.39.0",
"eslint": "^8.40.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
Expand All @@ -75,7 +80,7 @@
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^5.0.0",
"rollup": "^3.21.5",
"rollup": "^3.21.6",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^5.3.0",
"typescript": "^5.0.4",
Expand Down
Loading

0 comments on commit 4876ba3

Please sign in to comment.