Skip to content

Commit

Permalink
fix: use default in exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 26, 2024
1 parent 663e349 commit 784a64d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"default": "./dist/index.js"
},
"./config": {
"types": "./dist/config.d.ts",
"import": "./dist/config.js"
"default": "./dist/config.js"
},
"./util": {
"types": "./dist/util/index.d.ts",
"import": "./dist/util/index.js"
"default": "./dist/util/index.js"
},
"./*": "./*"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "rm -rf ./dist && tsc",
Expand Down
11 changes: 5 additions & 6 deletions packages/moquerie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,26 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
"default": "./dist/index.js"
},
"./config": {
"types": "./dist/config.d.ts",
"import": "./dist/config.js"
"default": "./dist/config.js"
},
"./config.js": {
"types": "./dist/config.d.ts",
"import": "./dist/config.js"
"default": "./dist/config.js"
},
"./mocks": {
"types": "./dist/mocks.d.ts",
"import": "./dist/mocks.js"
"default": "./dist/mocks.js"
},
"./mocks.js": {
"types": "./dist/mocks.d.ts",
"import": "./dist/mocks.js"
"default": "./dist/mocks.js"
},
"./*": "./*"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"moquerie": "./bin.mjs"
Expand Down

0 comments on commit 784a64d

Please sign in to comment.