Source

version.ts

import { Metadata } from "@decaf-ts/decoration";

/**
 * @description Stores the current package version
 * @summary A constant that holds the version string of the package, which is replaced during build
 * @const VERSION
 * @memberOf module:CLI
 */
export const VERSION = "##VERSION##";

/**
 * @description Represents the current commit hash of the module build.
 * @summary Stores the current git commit hash for the package. The build replaces
 * the placeholder with the actual commit hash at publish time.
 * @const COMMIT
 */
export const COMMIT = "##COMMIT##";

/**
 * @description Represents the full version string of the module.
 * @summary Stores the semver version and commit hash for the package.
 * The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
 * @const FULL_VERSION
 */
export const FULL_VERSION = "##FULL_VERSION##";


/**
 * @description Stores the current package version
 * @summary A constant that holds the version string of the package, which is replaced during build
 * @const VERSION
 * @memberOf module:CLI
 */
export const PACKAGE_NAME = "##PACKAGE##";

Metadata.registerLibrary(PACKAGE_NAME, VERSION);