Skip to content

Commit

Permalink
🐛 fix: add cjs support
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 22, 2023
1 parent 4776d38 commit 82001a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'father';

export default defineConfig({
esm: { output: 'dist' },
esm: { output: 'es' },
cjs: { output: 'lib' },
});
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"license": "MIT",
"author": "LobeHub <[email protected]>",
"sideEffects": false,
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"main": "lib/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"files": [
"dist"
"lib",
"es"
],
"scripts": {
"build": "father build",
Expand Down Expand Up @@ -65,6 +66,7 @@
]
},
"dependencies": {
"@babel/runtime": "^7.22.10",
"@types/json-schema": "^7.0.12",
"zod": "^3.22.2"
},
Expand Down

0 comments on commit 82001a0

Please sign in to comment.