Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/tools/release/deps.ts>Crate

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Crate
Re-export
import { Crate } from "https://deno.land/x/deno@v1.38.4/tools/release/deps.ts";

Constructors

new
Crate(repo: Repo, crateMetadata: CargoPackageMetadata)

Properties

readonly
dependencies
readonly
folderPath
readonly
manifestPath
readonly
name
readonly
version

Methods

build(args?: { allFeatures?: boolean; additionalArgs?: string[]; })
cargoCheck(...additionalArgs: string[])
cargoUpdate(...additionalArgs: string[])
command(command: string | string[])

Gets all the descendant dependencies in the repository.

Gets the latest version from crates.io or returns undefined if not exists.

Gets the immediate child dependencies found in the repo.

increment(part: "major" | "minor" | "patch")

Gets if published or not, returning undefined if it was never published.

Prompts the user how they would like to patch and increments the version accordingly.

Prompts the user how they would like to patch and increments the version accordingly.

publish(...additionalArgs: string[])
setDependencyVersion(dependencyName: string, version: string)
setVersion(version: string)
test(args?: { allFeatures?: boolean; additionalArgs?: string[]; })