@exadev/build-identity 2.2.1 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cli.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
> Resolve a build's true identity -- a real, already-tagged release, or the commit it was built from -- from live git state, with an optional predicted-version display layer.
|
|
6
6
|
|
|
7
|
+
[](https://www.npmjs.com/package/@exadev/build-identity)
|
|
8
|
+
|
|
7
9
|
## Why
|
|
8
10
|
|
|
9
11
|
A build banner or footer link (`v1.4.0`, linking to a release page) is only honest the moment a real release actually exists at that commit. Deriving that label from `package.json` alone, or from a CI environment variable, or from "this is the main branch so it must be the latest release" is exactly how a link to a release page that doesn't exist yet gets shipped -- typically the commit that triggers the release pipeline itself, before the tag and GitHub Release the link points at have actually been created. This package makes that check live and unavoidable: it shells out to git, checks whether the release tag genuinely points at `HEAD` right now, and only then returns a `'release'` identity.
|
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Command, InvalidArgumentError, Option } from "commander";
|
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { execFileSync } from "node:child_process";
|
|
7
7
|
//#region package.json
|
|
8
|
-
var version = "2.2.
|
|
8
|
+
var version = "2.2.3";
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/format-identity.ts
|
|
11
11
|
const OUTPUT_FORMATS = ["json", "env"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exadev/build-identity",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Resolve a build's true identity (a real release tag, or the commit it was built from) from git state, with an optional predicted-version display layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publint": "0.3.22",
|
|
68
68
|
"semantic-release": "25.0.8",
|
|
69
69
|
"tsdown": "0.22.14",
|
|
70
|
-
"turbo": "2.
|
|
70
|
+
"turbo": "2.11.5",
|
|
71
71
|
"typescript": "6.0.3",
|
|
72
72
|
"typescript-eslint": "8.67.0",
|
|
73
73
|
"vitest": "4.1.10"
|