plugins 1.2.9 → 1.2.10-canary.1
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/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -841,8 +841,9 @@ async function installToPluginCache(plugins, scope, repoPath, source) {
|
|
|
841
841
|
for (const plugin of plugins) {
|
|
842
842
|
const pluginRef = `${plugin.name}@${marketplaceName}`;
|
|
843
843
|
const version = plugin.version ?? "0.0.0";
|
|
844
|
+
const versionKey = gitSha ? gitSha.slice(0, 12) : version;
|
|
844
845
|
step(`Installing ${c.bold(pluginRef)}...`);
|
|
845
|
-
const cacheDest = join3(cacheDir, marketplaceName, plugin.name,
|
|
846
|
+
const cacheDest = join3(cacheDir, marketplaceName, plugin.name, versionKey);
|
|
846
847
|
await mkdir(cacheDest, { recursive: true });
|
|
847
848
|
await cp(plugin.path, cacheDest, { recursive: true });
|
|
848
849
|
barDebug(c.dim(`Cached to ${cacheDest}`));
|
|
@@ -892,7 +893,8 @@ async function installToCursorExtensions(plugins, scope, repoPath, source) {
|
|
|
892
893
|
for (const plugin of plugins) {
|
|
893
894
|
const pluginRef = `${plugin.name}@${marketplaceName}`;
|
|
894
895
|
const version = plugin.version ?? "0.0.0";
|
|
895
|
-
const
|
|
896
|
+
const versionKey = gitSha ? gitSha.slice(0, 12) : version;
|
|
897
|
+
const folderName = `${marketplaceName}.${plugin.name}-${versionKey}`;
|
|
896
898
|
const destDir = join3(extensionsDir, folderName);
|
|
897
899
|
step(`Installing ${c.bold(pluginRef)}...`);
|
|
898
900
|
await mkdir(destDir, { recursive: true });
|