Skip to content

Commit

Permalink
feat(cli): useTs 为必填参数
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinyzheng authored and roymondchen committed Nov 17, 2022
1 parent b512e14 commit bb5aa67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ export interface UserConfig {
/** 组件文件后缀名,例如vue文件为.vue,tsx文件为.tsx,普通js文件则为.js */
componentFileAffix: string;
cleanTemp: boolean;
/** 入口文件是否生成为 ts 格式 */
useTs: boolean;
/** npm 配置,用于当packages配置有npm包名时,可以自动安装npm包 */
npmConfig?: NpmConfig;
/** 是否使用import()加载组件 */
dynamicImport?: boolean;
/** 入口文件是否生成为 ts 格式 */
useTs?: boolean;
hooks?: {
beforeWriteEntry?: (genContentMap: Record<string, string>, app: Core) => Promise<Record<string, string>>;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils/prepareEntryFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const prepareEntryFile = async (app: App) => {
};

const generateContent = (
useTs = true,
useTs: boolean,
type: EntryType,
map: Record<string, string>,
componentFileAffix = '',
Expand Down

0 comments on commit bb5aa67

Please sign in to comment.