diff --git a/packages/vant-cli/src/compiler/compile-js.ts b/packages/vant-cli/src/compiler/compile-js.ts index cc603bd57..d8bbf956e 100644 --- a/packages/vant-cli/src/compiler/compile-js.ts +++ b/packages/vant-cli/src/compiler/compile-js.ts @@ -3,7 +3,7 @@ import { readFileSync, removeSync, outputFileSync } from 'fs-extra'; import { replaceExt } from '../common'; import { replaceCssImport } from '../common/css'; -export function compileJs(filePath: string): Promise { +export function compileJs(filePath: string): Promise { return new Promise((resolve, reject) => { let code = readFileSync(filePath, 'utf-8'); diff --git a/packages/vant-cli/src/compiler/compile-package.ts b/packages/vant-cli/src/compiler/compile-package.ts index a37adc701..ef688ed8a 100644 --- a/packages/vant-cli/src/compiler/compile-package.ts +++ b/packages/vant-cli/src/compiler/compile-package.ts @@ -2,7 +2,7 @@ import webpack from 'webpack'; import { getPackageConfig } from '../config/webpack.package'; export async function compilePackage(isMinify: boolean) { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { const config = getPackageConfig(isMinify); webpack(config, (err, stats) => { diff --git a/packages/vant-cli/src/compiler/compile-site.ts b/packages/vant-cli/src/compiler/compile-site.ts index 43e47ccf0..e1d24913f 100644 --- a/packages/vant-cli/src/compiler/compile-site.ts +++ b/packages/vant-cli/src/compiler/compile-site.ts @@ -54,7 +54,7 @@ function watch() { } function build() { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { const config = getSitePrdConfig(); webpack(config, (err, stats) => { diff --git a/packages/vant-cli/src/compiler/gen-style-deps-map.ts b/packages/vant-cli/src/compiler/gen-style-deps-map.ts index 102d130ad..9df4e135d 100644 --- a/packages/vant-cli/src/compiler/gen-style-deps-map.ts +++ b/packages/vant-cli/src/compiler/gen-style-deps-map.ts @@ -93,7 +93,7 @@ function getSequence(components: string[], depsMap: DepsMap) { export async function genStyleDepsMap() { const components = getComponents(); - return new Promise(resolve => { + return new Promise(resolve => { clearDepsCache(); const map = {} as DepsMap; diff --git a/yarn.lock b/yarn.lock index fa9f9153e..5a6a2614a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11297,9 +11297,9 @@ typedarray-to-buffer@^3.1.5: is-typedarray "^1.0.0" typescript@^4.0.0: - version "4.0.2" - resolved "https://registry.npmjs.org/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2" - integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ== + version "4.1.2" + resolved "https://registry.npm.taobao.org/typescript/download/typescript-4.1.2.tgz?cache=0&sync_timestamp=1605941213950&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftypescript%2Fdownload%2Ftypescript-4.1.2.tgz#6369ef22516fe5e10304aae5a5c4862db55380e9" + integrity sha1-Y2nvIlFv5eEDBKrlpcSGLbVTgOk= uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6"