Skip to content

Commit

Permalink
🔧 fix: fix to use due entries
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Nov 15, 2023
1 parent 2db3bcf commit 071a0fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import { defineConfig } from 'father';

export default defineConfig({
esm: { output: 'es' },
cjs: { output: 'lib', platform: 'browser' },
});
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ next-env.d.ts
.next
.env
public/*.js
bun.lockb
bun.lockb
lib
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,27 @@
"license": "MIT",
"author": "LobeHub <i@lobehub.com>",
"sideEffects": false,
"type": "module",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./es/index.d.ts",
"import": "./es/index.js",
"module": "./es/index.js"
"module": "./es/index.js",
"require": "./lib/index.js"
},
"./react": {
"types": "./es/react/index.d.ts",
"import": "./es/react/index.js",
"module": "./es/react/index.js"
"module": "./es/react/index.js",
"require": "./lib/react/index.js"
}
},
"main": "es/index.js",
"main": "lib/index.js",
"module": "es/index.js",
"types": "es/index.d.ts",
"files": [
"es"
"es",
"lib"
],
"scripts": {
"build": "father build",
Expand Down

0 comments on commit 071a0fe

Please sign in to comment.