import * as molt from "https://deno.land/x/molt@0.1.0/mod.ts";
A module to update dependencies in Deno projects using deno_graph.
Example
To update all dependencies in a module and commit the changes to git:
import { collectDependencyUpdateAll } from "https://deno.land/x/molt@{VERSION}/mod.ts";
import { commitAll } from "https://deno.land/x/molt@{VERSION}/git/mod.ts";
const updates = await collectDependencyUpdateAll("./mod.ts");
console.log(updates);
// Commit all changes to git
await commitAll(updates, {
groupBy: (it) => it.name,
composeCommitMessage: ({ group, version }) =>
`build(deps): bump ${group} to ${version!.to}`,
});