fix(installer): allow scripts/ directory to be copied during install
Remove the scripts/ exclusion from both installer paths so that resolve-customization.py is available at the install destination where SKILL.md references it.
This commit is contained in:
parent
29f37255cf
commit
99094acd4f
|
|
@ -172,12 +172,10 @@ class ConfigDrivenIdeSetup {
|
||||||
const skipSuffixes = ['~', '.swp', '.swo', '.bak'];
|
const skipSuffixes = ['~', '.swp', '.swo', '.bak'];
|
||||||
const filter = (src) => {
|
const filter = (src) => {
|
||||||
const name = path.basename(src);
|
const name = path.basename(src);
|
||||||
const rel = path.relative(sourceDir, src);
|
|
||||||
if (src === sourceDir) return true;
|
if (src === sourceDir) return true;
|
||||||
if (skipPatterns.has(name)) return false;
|
if (skipPatterns.has(name)) return false;
|
||||||
if (name.startsWith('.') && name !== '.gitkeep') return false;
|
if (name.startsWith('.') && name !== '.gitkeep') return false;
|
||||||
if (skipSuffixes.some((s) => name.endsWith(s))) return false;
|
if (skipSuffixes.some((s) => name.endsWith(s))) return false;
|
||||||
if (rel === 'scripts' || rel.startsWith('scripts/')) return false;
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
await fs.copy(sourceDir, skillDir, { filter });
|
await fs.copy(sourceDir, skillDir, { filter });
|
||||||
|
|
|
||||||
|
|
@ -454,11 +454,6 @@ class OfficialModules {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip scripts directory - contains build/customization scripts not needed at install time
|
|
||||||
if (file.startsWith('scripts/') || file === 'scripts') {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Skip sidecar directories - these contain agent-specific assets not needed at install time
|
// Skip sidecar directories - these contain agent-specific assets not needed at install time
|
||||||
const isInSidecarDirectory = path
|
const isInSidecarDirectory = path
|
||||||
.dirname(file)
|
.dirname(file)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue