Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 764 Bytes

CI.md

File metadata and controls

35 lines (28 loc) · 764 Bytes

getAllPkgDigest

get all local packages' digest info, return an array of IPkgDigest

export async function getAllPkgDigest (needPrivate = true, searchKwd = ''): IPkgDigest[]
export interface IPkgDigest {
  /** package name */
  name: string
  /** package version */
  version: string
  /** whether package is private */
  private: boolean
  /** package folder full path */
  location: string
}

getLatestPkgVersFromGit

get local packages' latest version info from git tag. This requires you publish monorepo's packages via lerna publish

export async function getLatestPkgVersFromGit (): IPkgVersions
export interface IPkgVersions {
  /** package name: package version no.(without `v`) */
  [k: string]: string
}