@aiderdesk/extensions 0.12.1 → 0.12.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/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -138,7 +138,7 @@ function getExtensionsPath(repoUrl) {
|
|
|
138
138
|
try {
|
|
139
139
|
const url = new URL(repoUrl);
|
|
140
140
|
const pathParts = url.pathname.split("/").filter(Boolean);
|
|
141
|
-
if (pathParts.length > 4 && pathParts[2] === "tree") {
|
|
141
|
+
if (pathParts.length > 4 && (pathParts[2] === "tree" || pathParts[2] === "blob")) {
|
|
142
142
|
const extensionPath = pathParts.slice(4).join("/");
|
|
143
143
|
return extensionPath;
|
|
144
144
|
}
|
|
@@ -289,7 +289,7 @@ async function installFromUrl(url, targetDir) {
|
|
|
289
289
|
spinner.text = "Copying extension files...";
|
|
290
290
|
cpSync(sourceDir, targetPath, { recursive: true });
|
|
291
291
|
spinner.succeed(chalk.green(`\u2713 Installed ${extName} to ${targetDir}`));
|
|
292
|
-
if (existsSync(join(
|
|
292
|
+
if (existsSync(join(targetPath, "package.json"))) {
|
|
293
293
|
await installDependencies(targetPath);
|
|
294
294
|
}
|
|
295
295
|
} else {
|