From 92677659d3a94a26c0bbbcdaf609f77bb77adc25 Mon Sep 17 00:00:00 2001 From: luckyadam Date: Mon, 23 Dec 2019 16:55:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(cli):=20=E6=8F=92=E4=BB=B6=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E5=A4=B1=E8=B4=A5=EF=BC=8Cclose=20#5149?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-cli/src/mini/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/taro-cli/src/mini/index.ts b/packages/taro-cli/src/mini/index.ts index 920423df1cb5..fac9b46321f6 100644 --- a/packages/taro-cli/src/mini/index.ts +++ b/packages/taro-cli/src/mini/index.ts @@ -92,7 +92,9 @@ function readQuickAppManifest () { export async function build (appPath: string, { watch, type = BUILD_TYPES.WEAPP, envHasBeenSet = false, port, release }: IBuildOptions, customBuildData: Partial | null | undefined, builder: Builder) { const buildData = setBuildData(appPath, type, customBuildData) const isQuickApp = type === BUILD_TYPES.QUICKAPP - await checkCliAndFrameworkVersion(appPath, type) + if (type !== BUILD_TYPES.PLUGIN) { + await checkCliAndFrameworkVersion(appPath, type) + } process.env.TARO_ENV = type if (!envHasBeenSet) { setIsProduction(process.env.NODE_ENV === 'production' || !watch)