Skip to content

Commit 2d5a8dd

Browse files
committed
fix(pkg): move types export condition
1 parent e56cc30 commit 2d5a8dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"license": "MIT",
77
"exports": {
88
".": {
9-
"require": "./dist/index.cjs",
109
"types": "./dist/index.d.ts",
10+
"require": "./dist/index.cjs",
1111
"import": "./dist/index.mjs"
1212
},
1313
"./runtime/mock/proxy-cjs": "./runtime/mock/proxy.cjs",
1414
"./runtime/mock/proxy-cjs/*": "./runtime/mock/proxy.cjs",
1515
"./runtime/*": {
16-
"require": "./runtime/*.cjs",
1716
"types": "./runtime/*.d.ts",
17+
"require": "./runtime/*.cjs",
1818
"import": "./runtime/*.mjs"
1919
}
2020
},
@@ -28,10 +28,10 @@
2828
"build": "unbuild",
2929
"lint": "eslint --ext .ts . && prettier -c src test",
3030
"lint:fix": "eslint --fix --ext .ts . && prettier -w src test",
31-
"typecheck": "tsc --noEmit",
3231
"prepack": "unbuild",
3332
"release": "pnpm test && changelogen --release && pnpm publish && git push --follow-tags",
34-
"test": "pnpm lint && pnpm typecheck"
33+
"test": "pnpm lint && pnpm typecheck",
34+
"typecheck": "tsc --noEmit"
3535
},
3636
"dependencies": {
3737
"defu": "^6.1.2",

0 commit comments

Comments
 (0)