fix component export
This commit is contained in:
parent
0aafce2c5d
commit
9988be9ea3
@ -16,5 +16,10 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
"@typescript-eslint/no-unused-vars": "off",
|
||||||
|
"no-restricted-exports": ["error", {
|
||||||
|
"restrictDefaultExports": {
|
||||||
|
direct: true,
|
||||||
|
}
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ interface Props {
|
|||||||
name?: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function HelloWorld({ name }: Props) {
|
export function HelloWorld({ name }: Props) {
|
||||||
name ??= "world";
|
name ??= "world";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
export * from "./api";
|
export * from "./api";
|
||||||
|
export * from "./components";
|
||||||
export * from "./decorators";
|
export * from "./decorators";
|
||||||
export * from "./hooks";
|
export * from "./hooks";
|
||||||
export * from "./model";
|
export * from "./model";
|
||||||
export * from "./stores";
|
export * from "./stores";
|
||||||
export * from "./utils";
|
export * from "./utils";
|
||||||
export type * from "./model";
|
export type * from "./model";
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@frontend/kitui",
|
"name": "@frontend/kitui",
|
||||||
"version": "1.0.23",
|
"version": "1.0.25",
|
||||||
"description": "test",
|
"description": "test",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/index.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user