Skip to content

Commit b6a85cd

Browse files
committed
rearrange compiled modules
1 parent 655b795 commit b6a85cd

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"publishConfig": {
2323
"access": "public"
2424
},
25-
"type": "module",
25+
"main": "dist/cjs/index.js",
26+
"module": "dist/esm/index.js",
27+
"prettier": "@aboutbits/prettier-config",
2628
"files": [
2729
"readme.md",
2830
"dist/**/*"
@@ -94,6 +96,5 @@
9496
"zod": {
9597
"optional": true
9698
}
97-
},
98-
"prettier": "@aboutbits/prettier-config"
99+
}
99100
}

tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"module": "commonjs",
5-
"outDir": "./dist",
5+
"outDir": "./dist/cjs",
66
"declaration": true,
77
"declarationMap": true,
88
"sourceMap": false,

0 commit comments

Comments
 (0)