Skip to content

Commit

Permalink
fix: auto finish_components
Browse files Browse the repository at this point in the history
  • Loading branch information
CCherry07 committed Jul 26, 2024
1 parent 86091d6 commit 2453ca4
Show file tree
Hide file tree
Showing 11 changed files with 235 additions and 299 deletions.
6 changes: 6 additions & 0 deletions packages/react-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @farmfe/plugin-react-components

## 1.0.3

### Patch Changes

- fix auto finish_components

## 1.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@farmfe/plugin-react-components",
"version": "1.0.2",
"version": "1.0.3",
"private": false,
"main": "scripts/index.js",
"types": "scripts/index.d.ts",
Expand Down
144 changes: 0 additions & 144 deletions packages/react-components/playground/components.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/react-components/playground/farm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default defineConfig({
["@farmfe/plugin-react-components", {
dts: true,
local: true,
filename: "./src/types/components.d.ts",
filename: "src/types/components.d.ts",
resolvers: [
{
module: "antd",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export default () => {
return <button>ComponentD</button>
}

const ComponentX = () => {
return <button>ComponentX</button>
}
export { ComponentX }
1 change: 1 addition & 0 deletions packages/react-components/playground/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function Main() {
<ComponentD></ComponentD>
<ComponentE></ComponentE>
<ComponentF></ComponentF>
<ComponentX></ComponentX>
<AntSpace>
<ArcoButton type="primary" onClick={() => setCount((count) => count + 1)}>arco button</ArcoButton>
<AntButton type="primary" onClick={() => setCount((count) => count + 1)}>antd button</AntButton>
Expand Down
Loading

0 comments on commit 2453ca4

Please sign in to comment.