import * as molt from "https://deno.land/x/molt@0.17.2/mod.ts";
A module to bump version strings in import specifiers.
Examples
To update all dependencies in a module and write the changes to files:
import { collect, write } from "https://deno.land/x/molt@{VERSION}/mod.ts";
const result = await collect("./mod.ts");
await write(result);
To update all dependencies in a module and commit the changes to local git repository:
import { collect, commit } from "https://deno.land/x/molt@{VERSION}/mod.ts";
const result = await collect("./mod.ts");
await commit(result, {
groupBy: (dependency) => dependency.name,
composeCommitMessage: ({ group, version }) =>
`build(deps): bump ${group} to ${version!.to}`,
});
Functions
Collect dependencies from the given module(s) or Deno configuration file(s). Local submodules are also checked recursively. | |
Write the given | |
Create a sequence of commits from the given | |
Parse properties of a dependency from the given URL. | |
Resolve the latest version of the given dependency. | |
Convert the given dependency to a URL string. | |
Write the given |
Interfaces
The result of collecting dependencies. | |
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 | |