claude-autopm 2.12.2 → 2.12.3
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/install/install.js +5 -3
- package/package.json +1 -1
package/install/install.js
CHANGED
|
@@ -1057,7 +1057,7 @@ See: https://github.com/rafeekpro/ClaudeAutoPM
|
|
|
1057
1057
|
|
|
1058
1058
|
// Install scripts
|
|
1059
1059
|
if (metadata.scripts && metadata.scripts.length > 0) {
|
|
1060
|
-
const targetDir = path.join(this.targetDir, '.claude'
|
|
1060
|
+
const targetDir = path.join(this.targetDir, '.claude');
|
|
1061
1061
|
if (!fs.existsSync(targetDir)) {
|
|
1062
1062
|
fs.mkdirSync(targetDir, { recursive: true });
|
|
1063
1063
|
}
|
|
@@ -1065,7 +1065,8 @@ See: https://github.com/rafeekpro/ClaudeAutoPM
|
|
|
1065
1065
|
for (const script of metadata.scripts) {
|
|
1066
1066
|
if (script.subdirectory && script.files) {
|
|
1067
1067
|
// Handle subdirectory with multiple files
|
|
1068
|
-
|
|
1068
|
+
// scripts/pm/epic-sync/ -> .claude/scripts/pm/epic-sync/
|
|
1069
|
+
const cleanSubdir = script.subdirectory;
|
|
1069
1070
|
const subdirTarget = path.join(targetDir, cleanSubdir);
|
|
1070
1071
|
if (!fs.existsSync(subdirTarget)) {
|
|
1071
1072
|
fs.mkdirSync(subdirTarget, { recursive: true });
|
|
@@ -1084,7 +1085,8 @@ See: https://github.com/rafeekpro/ClaudeAutoPM
|
|
|
1084
1085
|
}
|
|
1085
1086
|
} else if (script.file) {
|
|
1086
1087
|
// Handle single script file
|
|
1087
|
-
|
|
1088
|
+
// Keep full path structure (scripts/pm/file.js -> scripts/pm/file.js)
|
|
1089
|
+
const cleanFile = script.file;
|
|
1088
1090
|
const sourcePath = path.join(pluginPath, script.file);
|
|
1089
1091
|
const targetPath = path.join(targetDir, cleanFile);
|
|
1090
1092
|
|
package/package.json
CHANGED