Skip to content

Commit

Permalink
🐛 fix: try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Sep 6, 2023
1 parent 50f201b commit 0887276
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'father';

export default defineConfig({
esm: {},
cjs: {},
esm: { output: 'es' },
cjs: { output: 'lib' },
});
1 change: 1 addition & 0 deletions client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './es/react';
1 change: 1 addition & 0 deletions client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './es/react';
33 changes: 7 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,14 @@
"license": "MIT",
"author": "LobeHub <[email protected]>",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts"
},
"./react": {
"types": "./dist/cjs/react.d.ts",
"require": "./dist/cjs/react.js",
"import": "./dist/esm/react.js"
},
"./*": [
"./*",
"./*.d.ts"
]
},
"typesVersions": {
"*": {
"*": [
"./*",
"./dist/*"
]
}
},
"main": "./lib/index.js",
"module": "./es/index.js",
"types": "./lib/index.d.ts",
"files": [
"dist"
"lib",
"es",
"client.d.ts",
"client.js"
],
"scripts": {
"build": "father build",
Expand Down
1 change: 0 additions & 1 deletion src/react.ts

This file was deleted.

0 comments on commit 0887276

Please sign in to comment.