create-egregore 0.17.0 → 0.17.1
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/lib/local.js +15 -5
- package/package.json +1 -1
package/lib/local.js
CHANGED
|
@@ -296,11 +296,21 @@ async function localFounderFlow(ui, ctx = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
// 4. What — new or existing?
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
// If the user came in via the in-repo detection and chose "install
|
|
300
|
+
// alongside", they already told us they have an existing project — don't
|
|
301
|
+
// re-ask. Go straight to the existing-project path.
|
|
302
|
+
let isNewProject;
|
|
303
|
+
if (ctx.prefilledRepo) {
|
|
304
|
+
isNewProject = false;
|
|
305
|
+
console.log("");
|
|
306
|
+
ui.info(`Existing project — we'll manage ${ui.cyan(ctx.prefilledRepo.localName)} plus any others you pick.`);
|
|
307
|
+
} else {
|
|
308
|
+
const action = await ui.choose("What are you working on?", [
|
|
309
|
+
{ label: "Starting something new", description: "Create a project from scratch" },
|
|
310
|
+
{ label: "Existing project", description: "Connect repos I already have" },
|
|
311
|
+
]);
|
|
312
|
+
isNewProject = action.label.startsWith("Starting");
|
|
313
|
+
}
|
|
304
314
|
|
|
305
315
|
// 5. Collect project info
|
|
306
316
|
let orgName, description, selectedRepos = [], newProjectRepo = null;
|