mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
feat(cli): useTs 为必填参数
This commit is contained in:
parent
b512e14129
commit
bb5aa6722f
@ -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>>;
|
||||
};
|
||||
|
@ -28,7 +28,7 @@ export const prepareEntryFile = async (app: App) => {
|
||||
};
|
||||
|
||||
const generateContent = (
|
||||
useTs = true,
|
||||
useTs: boolean,
|
||||
type: EntryType,
|
||||
map: Record<string, string>,
|
||||
componentFileAffix = '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user