Skip to content

Commit

Permalink
Merge pull request #4267 from Qiyu8/fix#4252
Browse files Browse the repository at this point in the history
fix4252 自动化安装快应用缺失的包
  • Loading branch information
Qiyu8 authored Sep 5, 2019
2 parents 2d04596 + 522e7d2 commit 4ef9b3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/taro-cli/src/mini/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ import {
generateEnvList,
generateConstantsList,
isEmptyObject,
getInstalledNpmPkgPath,
recursiveFindNodeModules,
getBabelConfig,
extnameExpRegOf
} from '../util'
import { resolveNpmPkgMainPath } from '../util/resolve_npm_files'
import { resolveNpmSync } from '../util/npm'

import {
IProjectConfig,
IOption,
Expand Down Expand Up @@ -343,7 +344,7 @@ export function copyFilesFromSrcToOutput (files: string[], cb?: (sourceFilePath:
}

export function getTaroJsQuickAppComponentsPath () {
const taroJsQuickAppComponentsPkg = getInstalledNpmPkgPath(taroJsQuickAppComponents, BuildData.nodeModulesPath)
const taroJsQuickAppComponentsPkg = resolveNpmSync(taroJsQuickAppComponents, BuildData.nodeModulesPath)
if (!taroJsQuickAppComponentsPkg) {
printLog(processTypeEnum.ERROR, '包安装', `缺少包 ${taroJsQuickAppComponents},请安装!`)
process.exit(0)
Expand Down

0 comments on commit 4ef9b3a

Please sign in to comment.