MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / updateLockfile

Function updateLockfile

packages/bumpy/src/commands/version.ts:183–194  ·  view source on GitHub ↗

Run the package manager's install to update the lockfile

(rootDir: string)

Source from the content-addressed store, hash-verified

181
182/** Run the package manager's install to update the lockfile */
183async function updateLockfile(rootDir: string): Promise<void> {
184 const { packageManager } = await detectWorkspaces(rootDir);
185 const installArgs = getInstallArgs(packageManager);
186
187 log.step(`Updating lockfile (${installArgs.join(' ')})...`);
188 try {
189 runArgs(installArgs, { cwd: rootDir });
190 log.dim(' Lockfile updated');
191 } catch (err) {
192 log.warn(` Lockfile update failed: ${err instanceof Error ? err.message : err}`);
193 }
194}
195
196function getInstallArgs(pm: string): string[] {
197 switch (pm) {

Callers 1

versionCommandFunction · 0.85

Calls 3

detectWorkspacesFunction · 0.90
runArgsFunction · 0.90
getInstallArgsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…