skillsets 0.9.1 → 0.9.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/commands/install.js +6 -0
- package/package.json +1 -1
package/dist/commands/install.js
CHANGED
|
@@ -145,6 +145,12 @@ export async function install(skillsetId, options) {
|
|
|
145
145
|
await rm(tempDir, { recursive: true, force: true });
|
|
146
146
|
throw new Error('Checksum verification failed - files may be corrupted');
|
|
147
147
|
}
|
|
148
|
+
// Strip redirect README.md if a README_*.md exists (avoid clobbering user's README)
|
|
149
|
+
const tempEntries = await readdir(tempDir);
|
|
150
|
+
const hasNamedReadme = tempEntries.some(f => /^README_[^/]+\.md$/i.test(f));
|
|
151
|
+
if (hasNamedReadme && tempEntries.includes('README.md')) {
|
|
152
|
+
await rm(join(tempDir, 'README.md'));
|
|
153
|
+
}
|
|
148
154
|
// Checksums valid — move verified content to cwd
|
|
149
155
|
spinner.text = 'Installing verified content...';
|
|
150
156
|
const entries = await readdir(tempDir, { withFileTypes: true });
|