Skip to main content
Version: v0.0.6

Variable: VERSION

const VERSION: string = "0.0.6"

Library version string, equal to this package's published package.json#version.

Changesets owns the bump and rewrites package.json only, so the release version script runs scripts/sync-version.mjs to rewrite this declaration in the same commit, and test/sanity.test.ts compares the two so a skipped sync goes red instead of shipping a version string that lies.

The : string annotation is deliberate: without it the declaration's inferred type is the string literal itself, which bakes the current release into the emitted declarations and narrows every consumer's type on each bump.

Example

import { VERSION } from "@cosyte/synth";
console.log(VERSION);