create-egregore 0.17.0 → 0.17.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/lib/auth.js CHANGED
@@ -140,6 +140,7 @@ async function deviceFlow(ui, opts = {}) {
140
140
  ui.info(`Your code: ${ui.bold(user_code)}`);
141
141
  }
142
142
  ui.info("Opening browser...");
143
+ ui.info(`If it doesn't open, visit: ${verifyUrl}`);
143
144
  ui.info("");
144
145
  openBrowser(verifyUrl);
145
146
 
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
- const action = await ui.choose("What are you working on?", [
300
- { label: "Starting something new", description: "Create a project from scratch" },
301
- { label: "Existing project", description: "Connect repos I already have" },
302
- ]);
303
- const isNewProject = action.label.startsWith("Starting");
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-egregore",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "description": "Set up Egregore for your team in one command",
5
5
  "license": "MIT",
6
6
  "bin": {