@graypark/loophaus 2.0.0 → 2.0.2
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
|
@@ -104,10 +104,18 @@ export async function install({ dryRun = false, force = false } = {}) {
|
|
|
104
104
|
skills: "./skills/",
|
|
105
105
|
}],
|
|
106
106
|
}, null, 2), "utf-8");
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
);
|
|
107
|
+
// Copy plugin.json and patch version dynamically
|
|
108
|
+
const pluginJson = JSON.parse(await readFile(join(PROJECT_ROOT, ".claude-plugin", "plugin.json"), "utf-8"));
|
|
109
|
+
pluginJson.version = version;
|
|
110
|
+
await writeFile(join(mpDir, "plugin.json"), JSON.stringify(pluginJson, null, 2), "utf-8");
|
|
111
|
+
|
|
112
|
+
// Also patch the cached copy
|
|
113
|
+
const cachedPluginJson = join(cacheDir, ".claude-plugin", "plugin.json");
|
|
114
|
+
if (await fileExists(cachedPluginJson)) {
|
|
115
|
+
const cached = JSON.parse(await readFile(cachedPluginJson, "utf-8"));
|
|
116
|
+
cached.version = version;
|
|
117
|
+
await writeFile(cachedPluginJson, JSON.stringify(cached, null, 2), "utf-8");
|
|
118
|
+
}
|
|
111
119
|
}
|
|
112
120
|
|
|
113
121
|
// Step 3: installed_plugins.json
|