diff options
Diffstat (limited to 'lib/version/version.ts')
| -rw-r--r-- | lib/version/version.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/version/version.ts b/lib/version/version.ts new file mode 100644 index 0000000..69377b8 --- /dev/null +++ b/lib/version/version.ts @@ -0,0 +1,11 @@ +const [major, minor] = __APP_VERSION__.split('.') + +/** + * The app's version in short display form (`<major>.<minor>`), derived + * from the `version` field in `package.json` at build time via Vite's + * `define`. Used in the UI footer. + */ +export const APP_VERSION: string = `${major}.${minor}` + +/** The full semver string from `package.json`. */ +export const APP_VERSION_FULL: string = __APP_VERSION__ |
