prompt-skill-armory 0.5.1 → 0.5.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/cli.cjs +7 -2
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -159,9 +159,14 @@ function main() {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
let profiles = findProfiles()
|
|
162
|
+
const ensured = ensureProfile() // always ensure web + desktop exist
|
|
163
|
+
// merge: prefer existing, add any newly ensured
|
|
164
|
+
for (const dir of ensured) {
|
|
165
|
+
if (!profiles.includes(dir)) profiles.push(dir)
|
|
166
|
+
}
|
|
162
167
|
if (profiles.length === 0) {
|
|
163
|
-
console.
|
|
164
|
-
|
|
168
|
+
console.error(' ✖ no profiles available')
|
|
169
|
+
process.exit(1)
|
|
165
170
|
}
|
|
166
171
|
|
|
167
172
|
for (const profileDir of profiles) {
|