joyskills-cli 0.2.0 → 0.2.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/package.json +1 -1
- package/src/commands/install.js +5 -1
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -83,7 +83,11 @@ async function installPublicSkill(skillName, options, localManager, lockfileMana
|
|
|
83
83
|
|
|
84
84
|
// 调用 openskills install
|
|
85
85
|
const cmd = `npx openskills install ${skillName}`;
|
|
86
|
-
|
|
86
|
+
try {
|
|
87
|
+
execSync(cmd, { stdio: 'inherit' });
|
|
88
|
+
} catch (error) {
|
|
89
|
+
throw new Error(`openskills install failed: Command failed: ${cmd}`);
|
|
90
|
+
}
|
|
87
91
|
|
|
88
92
|
// 更新 lockfile
|
|
89
93
|
lockfileManager.updateSkill(skillName, {
|