import * as molt from "https://deno.land/x/molt@0.7.1/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,
FileUpdate,
} from "https://deno.land/x/molt@{VERSION}/mod.ts";
const updates = await DependencyUpdate.collect("./mod.ts", {
importMap: "./deno.json",
});
const results = await FileUpdate.collect(updates);
await FileUpdate.writeAll(results);
Interfaces
Representation of a dependency update. | |