Skip to content

armgit / cogit

Public Imported from GitHub
0

Git for the intent behind agent-written code. Records what your coding agent decided and why, and links every commit to it.

fix(build): build the package before packing it

Eren910bd2ea0f9e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4fcadf6..b6fc683 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Fixed
+- `cogit --version` said 0.22.0 in the 0.23.0 package: publishing now always builds first, so the bundled version matches the package.
+
## [0.23.0] - 2026-10-30
### Fixed
- After an upgrade the map no longer shows the old version's page until the next message: every map is stamped with the cogit version that built it, and the server rebuilds one another version wrote before serving it.
diff --git a/packages/cli/package.json b/packages/cli/package.json
index dd28707..d7b72dd 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -40,7 +40,7 @@
"scripts": {
"prebuild": "node ../../scripts/sync-version.mjs",
"build": "tsup",
- "prepack": "node ../../scripts/sync-version.mjs && node ../../scripts/copy-docs.mjs"
+ "prepack": "npm --prefix ../.. run build && node ../../scripts/copy-docs.mjs"
},
"devDependencies": {
"@inquirer/prompts": "^8.7.4",