CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-libnpmorg

Programmatic API for managing npm organization memberships and roles

74

0.97x
Overview
Eval results
Files

task.mdevals/scenario-7/

Dependency Update Orchestrator

Design a small utility that updates a Node.js project's dependencies to the newest versions that satisfy the semver ranges already declared in the manifests, relying on the package manager's built-in updater rather than manual manifest edits.

Capabilities

Update all dependencies

  • When run without filters, updates every dependency declared in the project to the highest versions allowed by their existing semver ranges and refreshes lockfiles. @test

Target specific packages

  • When provided with an explicit list of package names, updates only those packages while leaving all others untouched. @test

Workspace-aware updates

  • When given a workspace identifier, updates dependencies only inside that workspace and keeps other workspaces unchanged. @test

Report changes

  • Returns a summary showing each updated package, its previous installed version, its new installed version, and the workspace it belonged to (when applicable). @test

Implementation

@generates

API

export interface UpdateOptions {
  cwd: string;
  packages?: string[];
  workspace?: string;
}

export interface UpdateSummaryItem {
  name: string;
  fromVersion: string;
  toVersion: string;
  workspace?: string;
}

export interface UpdateResult {
  updates: UpdateSummaryItem[];
}

export async function updateDependencies(options: UpdateOptions): Promise<UpdateResult>;

Dependencies { .dependencies }

npm { .dependency }

Provides the package manager CLI for applying semver-respecting dependency updates and updating lockfiles.

Install with Tessl CLI

npx tessl i tessl/npm-libnpmorg

tile.json