API 参考 / @142vip/utils / VipMonorepo
const VipMonorepo: object
const
object
Defined in: packages/utils/src/core/monorepo.ts:79
getPackageJSONPathList: () => string[]
string
获取monorepo下所有包的package.json,返回所有包的路径列表
string[]
getPkgJSONPath: (pkgName, filter?) => undefined | PackageJSONWithPath
pkgName
filter?
undefined
PackageJSONWithPath
获取某个包的PkgJSON信息
string | string[]
undefined | PackageJSONWithPath
getPkgNames: (filter?) => string[]
获取所有包名
pnpm ls --json --only-projects ${filter} --depth -1
getReleasePkgJSON: (filter?) => PackageJSONWithPath[]
获取发布的包名 参考:
PackageJSONWithPath[]
There was an error while loading. Please reload this page.