Skip to main content
Module

x/molt/mod.ts

Update dependencies the Deno way
Go to Latest
import * as molt from "https://deno.land/x/molt@0.11.3/mod.ts";

A module to update dependencies in Deno projects using deno_graph.

Example

To update all dependencies in a module and write the changes to local files:

import {
  DependencyUpdate,
  writeAll,
} from "https://deno.land/x/molt@{VERSION}/mod.ts";

const updates = await DependencyUpdate.collect("./mod.ts", {
  importMap: "./deno.json",
});

await writeAll(updates);

Functions

Write the given array of DependencyUpdate to files.

Interfaces

Properties of a dependency parsed from an import specifier.

Representation of an update to a dependency.

A collection of updates to dependencies associated with a file.

Properties of a dependency parsed from an updated import specifier. The version property is guaranteed to be a semver string.

Type Aliases

A string that represents a path segment (e.g. src/lib.ts.)

A string that represents a semver (e.g. v1.0.0.)