joyskills-cli 0.2.4 → 0.2.5
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 +1 -3
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -110,9 +110,7 @@ async function installPublicSkill(skillName, options, localManager, lockfileMana
|
|
|
110
110
|
|
|
111
111
|
// 4. 确定安装目标目录(只用最后一级目录名)
|
|
112
112
|
const skillDirName = parts[parts.length - 1]; // anthropics/skills/pdf -> pdf
|
|
113
|
-
const targetDir =
|
|
114
|
-
? localManager.getGlobalSkillPath(skillDirName)
|
|
115
|
-
: localManager.getProjectSkillPath(skillDirName);
|
|
113
|
+
const targetDir = path.join(localManager.getSkillsDir(), skillDirName);
|
|
116
114
|
|
|
117
115
|
const location = options.global ? 'global (~/.claude/skills)' : 'project (./.claude/skills)';
|
|
118
116
|
console.log(`📍 Location: ${location}`);
|