Skip to content

Commit

Permalink
fix: resolve issue with exports
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Feb 23, 2024
1 parent 6eca9a6 commit 6adca1d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules/
.DS_Store
coverage/
dist/
*.tgz
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,34 @@
"main": "./dist/index.cjs",
"module": "./dist/index.module.js",
"unpkg": "./dist/index.umd.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"default": "./dist/index.modern.js"
},
"./react-router": {
"require": "./dist/tests/libs/react-router.cjs",
"types": "./dist/tests/libs/react-router.d.ts",
"default": "./dist/tests/libs/react-router.modern.js"
"types": "./dist/react-router.d.ts",
"require": "./dist/react-router.cjs",
"default": "./dist/react-router.modern.js"
},
"./react-helmet-async": {
"require": "./dist/tests/libs/react-helmet-async.cjs",
"types": "./dist/tests/libs/react-helmet-async.d.ts",
"default": "./dist/tests/libs/react-helmet-async.modern.js"
"types": "./dist/react-helmet-async.d.ts",
"require": "./dist/react-helmet-async.cjs",
"default": "./dist/react-helmet-async.modern.js"
},
"./react-query": {
"require": "./dist/tests/libs/react-query.cjs",
"types": "./dist/tests/libs/react-query.d.ts",
"default": "./dist/tests/libs/react-query.modern.js"
"types": "./dist/react-query.d.ts",
"require": "./dist/react-query.cjs",
"default": "./dist/react-query.modern.js"
}
},
"types": "dist/index.d.ts",
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"lint": "eslint 'src/**/*.ts'",
"build": "microbundle"
"build": "rm -rf dist && microbundle"
},
"peerDependencies": {
"react": "*"
Expand Down

0 comments on commit 6adca1d

Please sign in to comment.