@khanhcan148/mk 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanhcan148/mk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "CLI to install and manage MyClaudeKit (.claude/) in your projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -98,13 +98,19 @@ export async function runUpdate(params = {}) {
98
98
  diff.removed.length === 0 &&
99
99
  diff.conflicts.length === 0;
100
100
 
101
+ // Read package version (fileURLToPath handles Windows drive-letter prefix correctly)
102
+ const pkg = JSON.parse(readFileSync(fileURLToPath(new URL('../../package.json', import.meta.url)), 'utf8'));
103
+
101
104
  if (upToDate) {
105
+ // Files are unchanged but we may still need to record the release version.
106
+ // Without this, manifest.version stays at the old value and the next `mk update`
107
+ // will always report "Update available" even though nothing changed on disk.
108
+ if (explicitVersion && explicitVersion !== manifest.version) {
109
+ updateManifest(manifestPath, manifest.files, explicitVersion);
110
+ }
102
111
  return { ...diff, upToDate: true };
103
112
  }
104
113
 
105
- // Read package version (fileURLToPath handles Windows drive-letter prefix correctly)
106
- const pkg = JSON.parse(readFileSync(fileURLToPath(new URL('../../package.json', import.meta.url)), 'utf8'));
107
-
108
114
  const newFiles = { ...manifest.files };
109
115
 
110
116
  /**