Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/molt/lib/lockfile.ts>createLockPart

Update dependencies the Deno way
Latest
function createLockPart
import { createLockPart } from "https://deno.land/x/molt@0.17.2/lib/lockfile.ts";

Create a partial lockfile for the given dependency as a temporary file and returns the parsed LockFile object.

The implementation here is quite inefficient. We should rather add a JS interface to the deno_lockfile crate.

Parameters

dependency: string
  • The import specifier of dependency to create a lockfile for.
optional
locked: LockFile | null
  • If given, the resulting lock has the same version as this.
optional
lockTo: string
  • If given, the resulting lock has the same version as this.

Returns

Promise<LockPart>

A promise to the updated lockfile.