Skip to content

Commit

Permalink
🐛 fix: only support esm
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 20, 2023
1 parent 157a5b0 commit 072ca61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from 'father';

export default defineConfig({
cjs: { output: 'lib' },
esm: { output: 'es' },
});
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
"license": "MIT",
"author": "arvinxx(arvinx@foxmail.com)",
"sideEffects": false,
"main": "lib/index.js",
"main": "es/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"types": "es/index.d.ts",
"files": [
"lib",
"es"
],
"scripts": {
Expand Down

0 comments on commit 072ca61

Please sign in to comment.