Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/build/SetVersion.ts>SetVersion

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
class SetVersion
import { SetVersion } from "https://deno.land/x/fathym_common@v0.2.165-integration/src/build/SetVersion.ts";

SetVersion provides an interface for setting the version of a Deno project.

Examples

From direct import

import { SetVersion } from '@fathym/common/build';

const setVersion = new SetVersion();

await setVersion.Configure();

Constructors

new
SetVersion()

Creates a new SetVersion instance with the version pulled from the first deno arg.

new
SetVersion(version: string)

Creates a new SetVersion instance with the provided version number.

new
SetVersion(denoArgsVersion?: string[] | string)

Creates a new SetVersion instance.

Properties

protected
version: string

Methods

Configure(denoCfgPath?: string): Promise<string>

Updates the version in the specified deno configuration file.