Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lerna/lerna
/ functions
Functions
1,091 in github.com/lerna/lerna
⨍
Functions
1,091
◇
Types & classes
146
↓ 59 callers
Method
create
({ name, packageManager, lernaInit, initializeGit, installDependencies, e2eRoot, f
libs/e2e-utils/src/lib/fixture.ts:67
↓ 56 callers
Method
exec
* Execute a given command in the root of the lerna workspace under test within the fixture. * This has been given a terse name to help with readabi
libs/e2e-utils/src/lib/fixture.ts:206
↓ 55 callers
Method
destroy
* Tear down the entirety of the fixture including the git origin and the lerna workspace under test.
libs/e2e-utils/src/lib/fixture.ts:171
↓ 55 callers
Function
initFixtureFactory
(startDir: any)
libs/test-helpers/src/lib/fixtures.ts:46
↓ 55 callers
Function
normalizeEnvironment
(str: string)
libs/e2e-utils/src/lib/snapshot-serializer-utils.ts:31
↓ 50 callers
Method
lerna
* Execute a command using the locally installed instance of the lerna CLI. * This has been given a terse name to help with readability in the spec
libs/e2e-utils/src/lib/fixture.ts:282
↓ 44 callers
Method
then
(onResolved: () => void, onRejected: (err: string | Error) => void)
libs/core/src/lib/command/index.ts:214
↓ 41 callers
Function
getPackage
(project: ProjectGraphProjectNodeWithPackage)
libs/core/src/lib/project-graph-with-packages.ts:28
↓ 35 callers
Method
then
(onResolved: () => void, onRejected: (err: string | Error) => void)
libs/commands/init/src/index.ts:127
↓ 34 callers
Method
get
* Map-like retrieval of arbitrary values
libs/core/src/lib/package.ts:249
↓ 30 callers
Method
getWorkspacePath
* Resolve the file path of a given file within the lerna workspace under test.
libs/e2e-utils/src/lib/fixture.ts:184
↓ 29 callers
Method
createInitialGitCommit
()
libs/e2e-utils/src/lib/fixture.ts:448
↓ 29 callers
Method
updateJson
(path: string, updateFn: (json: Record<string, unknown>) => Record<string, unknown>)
libs/e2e-utils/src/lib/fixture.ts:456
↓ 28 callers
Function
commandRunner
(commandModule: yargs.CommandModule)
libs/test-helpers/src/lib/cli.ts:13
↓ 28 callers
Method
toString
()
libs/core/src/lib/byte-size.ts:21
↓ 27 callers
Function
cliRunner
(cwd: string, env?: any)
libs/test-helpers/src/lib/cli.ts:102
↓ 27 callers
Function
test
(val: string)
e2e/exec/src/exec.spec.ts:8
↓ 26 callers
Method
add
(data: any, marker: string)
libs/core/src/lib/npm-conf/conf.ts:24
↓ 26 callers
Method
set
* Map-like storage of arbitrary values
libs/core/src/lib/package.ts:256
↓ 25 callers
Method
log
(lvl: string, prefix: string, ...messageArgs: any[])
libs/core/src/lib/npmlog/index.ts:215
↓ 23 callers
Method
execSync
(cmd: string, args: string[])
libs/commands/import/src/index.ts:166
↓ 22 callers
Function
normalizeCommitSHAs
(str: string)
libs/e2e-utils/src/lib/snapshot-serializer-utils.ts:14
↓ 22 callers
Method
write
( msg: string, style?: { fg?: string; bg?: string; bold?: boolean; underline?:
libs/core/src/lib/npmlog/index.ts:318
↓ 21 callers
Function
cloneFixtureFactory
(startDir: any)
libs/test-helpers/src/lib/fixtures.ts:10
↓ 21 callers
Function
gitTag
(cwd: string, tagName: string)
libs/test-helpers/src/lib/git/index.ts:48
↓ 19 callers
Function
defineLernaVitestConfig
(options: LernaVitestOptions)
vitest.shared.ts:66
↓ 18 callers
Method
addScriptsToPackage
({ packagePath, scripts, }: { packagePath: string; scripts: Record<string, string>; })
libs/e2e-utils/src/lib/fixture.ts:407
↓ 18 callers
Function
gitAdd
(cwd: string, ...files: string[])
libs/test-helpers/src/lib/git/index.ts:17
↓ 18 callers
Function
loggingOutput
(minLevel = "info")
libs/test-helpers/src/lib/logging-output.ts:9
↓ 17 callers
Function
normalizeCommandOutput
(str: string)
libs/e2e-utils/src/lib/snapshot-serializer-utils.ts:58
↓ 16 callers
Method
completed
()
libs/core/src/lib/npmlog/are-we-there-yet/tracker.ts:13
↓ 16 callers
Function
gitCommit
(cwd: string, message: string)
libs/test-helpers/src/lib/git/index.ts:25
↓ 15 callers
Method
success
* Log with level success * @param prefix * @param message * @param args
libs/core/src/lib/command/index.ts:42
↓ 14 callers
Function
defineLernaE2eVitestConfig
(options: LernaVitestOptions)
vitest.shared.ts:42
↓ 13 callers
Method
readWorkspaceFile
* Read the contents of a given file within the lerna workspace under test.
libs/e2e-utils/src/lib/fixture.ts:191
↓ 12 callers
Function
commitChangeToPackage
(cwd: string, packageName: string, commitMsg: any, data: any)
libs/test-helpers/src/lib/git/index.ts:76
↓ 12 callers
Method
isIndependent
()
libs/core/src/lib/project/index.ts:205
↓ 12 callers
Method
resume
()
libs/core/src/lib/npmlog/index.ts:202
↓ 12 callers
Function
test
(val)
libs/commands/version/src/lib/version-bump-prerelease.spec.ts:57
↓ 11 callers
Method
disable
()
libs/core/src/lib/npmlog/gauge/index.ts:202
↓ 11 callers
Method
fromExisting
(e2eRoot: string, fixtureRootPath: string, forceDeterministicTerminalOutput = false)
libs/e2e-utils/src/lib/fixture.ts:109
↓ 11 callers
Method
install
* Execute the install command of the configured package manager for the current fixture. * This has been given a terse name to help with readabilit
libs/e2e-utils/src/lib/fixture.ts:261
↓ 11 callers
Method
pause
()
libs/core/src/lib/npmlog/index.ts:195
↓ 11 callers
Method
readOutput
(fileName: string)
libs/e2e-utils/src/lib/fixture.ts:134
↓ 11 callers
Function
test
(val: unknown)
libs/core/src/lib/project/index.spec.ts:17
↓ 10 callers
Function
done
(finalError?: any)
libs/core/src/lib/npm-install.ts:78
↓ 10 callers
Method
serialize
* Write manifest changes to disk * @returns {Promise} resolves when write finished
libs/core/src/lib/package.ts:284
↓ 10 callers
Function
showCommit
(cwd: string, ...args: any[])
libs/test-helpers/src/lib/git/index.ts:52
↓ 10 callers
Function
trimEnds
(lines: string)
libs/e2e-utils/src/lib/snapshot-serializer-utils.ts:74
↓ 9 callers
Method
addNxJsonToWorkspace
()
libs/e2e-utils/src/lib/fixture.ts:367
↓ 9 callers
Method
catch
(onRejected: (err: string | Error) => void)
libs/commands/init/src/index.ts:132
↓ 9 callers
Method
completeWork
(work: number)
libs/core/src/lib/npmlog/are-we-there-yet/tracker.ts:22
↓ 9 callers
Function
test
(val)
libs/commands/list/src/lib/list-command.spec.ts:34
↓ 8 callers
Function
createProjectGraph
({ projects, dependencies, }: { projects: T[]; dependencies: (ProjectGraphDependency | ProjectGraphWor
libs/core/src/lib/test-helpers/create-project-graph.ts:33
↓ 8 callers
Method
finish
()
libs/core/src/lib/npmlog/are-we-there-yet/tracker.ts:30
↓ 8 callers
Method
lernaInit
* Resolve the locally published version of lerna and run the `init` command, with an optionally * provided arguments.
libs/e2e-utils/src/lib/fixture.ts:221
↓ 8 callers
Function
projectNode
( projectNode: Partial<ProjectGraphProjectNode>, pkg?: Partial<RawManifest> )
libs/core/src/lib/test-helpers/create-project-graph.ts:17
↓ 8 callers
Function
pulseTillDone
(prefix: string | any, promise?: any)
libs/core/src/lib/pulse-till-done.ts:28
↓ 7 callers
Method
addDependencyToPackage
({ packagePath, dependencyName, version, }: { packagePath: string; dependencyName: strin
libs/e2e-utils/src/lib/fixture.ts:382
↓ 7 callers
Method
addWork
(work: number)
libs/core/src/lib/npmlog/are-we-there-yet/tracker.ts:17
↓ 7 callers
Method
enable
()
libs/core/src/lib/npmlog/gauge/index.ts:189
↓ 7 callers
Function
npmConf
(opts?: any)
libs/core/src/lib/npm-conf/index.ts:14
↓ 7 callers
Function
output
(...args: any[])
libs/core/src/lib/output.ts:4
↓ 7 callers
Method
overrideLernaConfig
(lernaConfig: Record<string, any>)
libs/e2e-utils/src/lib/fixture.ts:249
↓ 7 callers
Function
prereleaseIdFromVersion
(version: string)
libs/core/src/lib/prerelease-id-from-version.ts:3
↓ 7 callers
Function
test
(val)
libs/core/src/lib/log-packed.spec.ts:11
↓ 6 callers
Function
catFile
(baseDir: any, fileName: any, content: any, opts = "utf8" as const)
libs/commands/create/src/lib/cat-file.ts:10
↓ 6 callers
Function
execSync
(command: string, args: string[], opts?: import("execa").SyncOptions)
libs/child-process/src/index.ts:44
↓ 6 callers
Function
projectGraphDependency
( dep: Partial<ProjectGraphWorkspacePackageDependency> )
libs/core/src/lib/test-helpers/create-project-graph.ts:27
↓ 6 callers
Method
setTheme
(theme: any)
libs/core/src/lib/npmlog/gauge/index.ts:151
↓ 6 callers
Method
show
(section?: string | object, completed?: number)
libs/core/src/lib/npmlog/gauge/index.ts:254
↓ 6 callers
Function
slash
(path: string)
libs/core/src/lib/slash.ts:5
↓ 5 callers
Method
_requestRedraw
()
libs/core/src/lib/npmlog/gauge/index.ts:159
↓ 5 callers
Method
addUnit
(unit: any, weight = 0)
libs/core/src/lib/npmlog/are-we-there-yet/tracker-group.ts:25
↓ 5 callers
Method
catch
(onRejected: (err: string | Error) => void)
libs/core/src/lib/command/index.ts:219
↓ 5 callers
Function
collectProjectUpdates
( filteredProjects: ProjectGraphProjectNodeWithPackage[], projectGraph: ProjectGraphWithPackages, execOp
libs/core/src/lib/collect-updates/collect-project-updates.ts:38
↓ 5 callers
Function
filterOptions
(yargs: Argv<object>)
libs/core/src/lib/filter-options.ts:5
↓ 5 callers
Function
filterProjects
( projectGraph: ProjectGraphWithPackages, execOpts: Partial<ExecOptions> = {}, opts: Partial<FilterOptio
libs/core/src/lib/filter-projects.ts:12
↓ 5 callers
Method
getPackages
* @deprecated Only used in legacy core utilities * TODO: remove in v8
libs/core/src/lib/project/index.ts:78
↓ 5 callers
Function
newException
(code: string, msg: string)
libs/core/src/lib/npmlog/gauge/validate.ts:122
↓ 5 callers
Function
runProjectsTopologically
( projects: ProjectGraphProjectNodeWithPackage[], projectGraph: ProjectGraphWithPackages, runner: (node:
libs/core/src/lib/run-projects-topologically.ts:17
↓ 5 callers
Function
setupLernaVersionMocks
()
libs/commands/publish/__fixtures__/lerna-version-mocks.ts:12
↓ 5 callers
Function
testEvent
(obj: any, event: any, next: any)
libs/core/src/lib/npmlog/are-we-there-yet/tests/test-event.ts:5
↓ 5 callers
Method
useColor
()
libs/core/src/lib/npmlog/index.ts:115
↓ 5 callers
Function
validate
(rawSchemas: string, args: any[] | IArguments)
libs/core/src/lib/npmlog/gauge/validate.ts:46
↓ 4 callers
Method
addFile
(file: any, name = file)
libs/core/src/lib/npm-conf/conf.ts:42
↓ 4 callers
Method
addLevel
(lvl: string | number, n: any, style?: any, disp: string | number | null = null)
libs/core/src/lib/npmlog/index.ts:335
↓ 4 callers
Function
applyBuildMetadata
(version: string, buildMetadata: string)
libs/core/src/lib/conventional-commits/apply-build-metadata.ts:8
↓ 4 callers
Function
colorize
(format: StyleFormat, text: string)
libs/child-process/src/colorize.ts:12
↓ 4 callers
Function
describeRef
( options: DescribeRefOptions = {}, includeMergedTags?: boolean )
libs/core/src/lib/describe-ref.ts:55
↓ 4 callers
Method
externalExecSync
(cmd: string, args: string[])
libs/commands/import/src/index.ts:170
↓ 4 callers
Method
filterPrivatePkgUpdates
(updates: ProjectGraphProjectNodeWithPackage[])
libs/commands/publish/src/index.ts:1140
↓ 4 callers
Function
getCommitMessage
(cwd: string, format = "%B")
libs/test-helpers/src/lib/git/index.ts:13
↓ 4 callers
Function
getPackagesForOption
(option?: string | string[] | boolean)
libs/core/src/lib/get-packages-for-option.ts:4
↓ 4 callers
Function
gitInit
(cwd: string, ...args: any[])
libs/test-helpers/src/lib/git/index.ts:34
↓ 4 callers
Method
hide
(cb?: () => void)
libs/core/src/lib/npmlog/gauge/index.ts:241
↓ 4 callers
Function
otplease
( fn: (opts: T) => Promise<unknown>, _opts: T, otpCache?: OneTimePasswordCache | null )
libs/core/src/lib/otplease.ts:44
↓ 4 callers
Function
promptConfirmation
(message: string)
libs/core/src/lib/prompt.ts:7
↓ 4 callers
Method
pulse
(subsection?: string)
libs/core/src/lib/npmlog/gauge/index.ts:274
↓ 4 callers
Method
refresh
* Refresh internal state from disk (e.g., changed by external lifecycles)
libs/core/src/lib/package.ts:272
next →
1–100 of 1,091, ranked by callers