Skip to content

Commit

Permalink
Merge pull request #843 from wheresrhys/rhys/fix-default-exports-order
Browse files Browse the repository at this point in the history
fix: change export order so default is last
  • Loading branch information
wheresrhys authored Sep 25, 2024
2 parents d1cdcce + bc9c41d commit 2250497
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 22 deletions.
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"exports": {
"browser": "./dist/esm/index.js",
"import": {
"default": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts"
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"default": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts"
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"main": "./dist/cjs/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/fetch-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"exports": {
"browser": "./dist/esm/index.js",
"import": {
"default": "./dist/esm/index.js",
"types": "./dist/esm/types/index.d.ts"
"types": "./dist/esm/types/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"default": "./dist/cjs/index.js",
"types": "./dist/cjs/types/index.d.ts"
"types": "./dist/cjs/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"main": "./dist/cjs/index.js",
Expand Down
19 changes: 12 additions & 7 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
"description": "jest wrapper for fetch-mock",
"version": "0.1.0",
"exports": {
"browser": "./src/index.js",
"import": "./src/index.js",
"require": "./dist/commonjs.js",
"types": "./types/index.d.ts"
"browser": "./dist/esm/index.js",
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"main": "./dist/commonjs.js",
"module": "./src/index.js",
"types": "./types/index.d.ts",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"type": "module",
"engines": {
"node": ">=18.11.0"
Expand Down
19 changes: 12 additions & 7 deletions packages/vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
"description": "Vitest wrapper for fetch-mock",
"version": "0.1.4",
"exports": {
"browser": "./src/index.js",
"import": "./src/index.js",
"require": "./dist/commonjs.js",
"types": "./types/index.d.ts"
"browser": "./dist/esm/index.js",
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"main": "./dist/commonjs.js",
"module": "./src/index.js",
"types": "./types/index.d.ts",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"type": "module",
"engines": {
"node": ">=18.11.0"
Expand Down

0 comments on commit 2250497

Please sign in to comment.