From 624da4c29a8f11b9d40a4a20c0d38c5a8a76f33d Mon Sep 17 00:00:00 2001 From: roymondchen Date: Wed, 3 Aug 2022 19:01:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(cli):=20=E6=94=AF=E6=8C=81=E9=85=8D?= =?UTF-8?q?=E7=BD=AEtemp=E6=96=87=E4=BB=B6=E5=A4=B9=EF=BC=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4.tmagic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/bin/tmagic.js | 1 + packages/cli/src/Core.ts | 2 +- packages/cli/src/types.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cli/bin/tmagic.js b/packages/cli/bin/tmagic.js index e4cdd91d..4294dce1 100755 --- a/packages/cli/bin/tmagic.js +++ b/packages/cli/bin/tmagic.js @@ -7,4 +7,5 @@ cli({ packages: {}, componentFileAffix: '', cleanTemp: true, + temp: '.tmagic', }); diff --git a/packages/cli/src/Core.ts b/packages/cli/src/Core.ts index 0cb7eeeb..00e2a62f 100644 --- a/packages/cli/src/Core.ts +++ b/packages/cli/src/Core.ts @@ -19,7 +19,7 @@ export default class Core { }; public dir = { - temp: () => path.resolve(this.options.source, 'src/.tmagic'), + temp: () => path.resolve(this.options.source, this.options.temp), }; constructor(options: UserConfig) { diff --git a/packages/cli/src/types.ts b/packages/cli/src/types.ts index 850ff26b..04388bd7 100644 --- a/packages/cli/src/types.ts +++ b/packages/cli/src/types.ts @@ -33,7 +33,7 @@ export interface EntryFile { export interface UserConfig { source: string; - scripts: Record; + temp: string; packages: Record; componentFileAffix: string; cleanTemp: boolean;