Skip to content

Commit

Permalink
fix: script lack of export
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Zhang1019 committed Feb 15, 2023
1 parent a353afb commit 28fb680
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 11 additions & 1 deletion playground/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ declare module 'lucky-design' {
LTree,
LBacktop,
LUpload,
LIcon,
} from 'lucky-design'
export { LButton, LCheckbox, LDrawer, LMessage, LTree, LBacktop, LUpload }
export {
LButton,
LCheckbox,
LDrawer,
LMessage,
LTree,
LBacktop,
LUpload,
LIcon,
}
}
4 changes: 4 additions & 0 deletions scripts/add-component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,7 @@ import { L$NAME } from 'lucky-design'
}
</style>
EOF

echo >> packages/components/index.ts "export * from './src/$INPUT_NAME'"

echo "Component $INPUT_NAME created successfully"

0 comments on commit 28fb680

Please sign in to comment.