create-kofi-stack 2.0.6 → 2.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +35 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -261,6 +261,35 @@ async function generateProject(config) {
261
261
  } catch {
262
262
  spinner.warn("Failed to install shadcn/ui components. Run pnpm dlx shadcn@latest add --all manually.");
263
263
  }
264
+ console.log();
265
+ const setupConvex = await p2.confirm({
266
+ message: "Would you like to set up Convex now?",
267
+ initialValue: true
268
+ });
269
+ if (p2.isCancel(setupConvex)) {
270
+ p2.cancel("Setup cancelled");
271
+ process.exit(0);
272
+ }
273
+ if (setupConvex) {
274
+ console.log();
275
+ p2.log.info("Starting Convex setup...");
276
+ p2.log.message(pc2.dim("This will open your browser to authenticate with Convex"));
277
+ console.log();
278
+ try {
279
+ await execa("pnpm", ["dev:setup"], {
280
+ cwd: config.targetDir,
281
+ stdio: "inherit"
282
+ });
283
+ console.log();
284
+ p2.log.success("Convex configured successfully!");
285
+ } catch {
286
+ console.log();
287
+ p2.log.warn("Convex setup was interrupted. Run pnpm dev:setup to try again.");
288
+ }
289
+ } else {
290
+ console.log();
291
+ p2.log.info(`Run ${pc2.cyan("pnpm dev:setup")} when you're ready to configure Convex`);
292
+ }
264
293
  } catch (error) {
265
294
  spinner.fail("An error occurred during project generation");
266
295
  throw error;
@@ -294,7 +323,12 @@ async function writeNodeToDisk(node, targetDir) {
294
323
  }
295
324
 
296
325
  // src/index.ts
297
- var VERSION = "2.0.0";
326
+ import { readFileSync } from "fs";
327
+ import { fileURLToPath } from "url";
328
+ import { dirname, join } from "path";
329
+ var __dirname = dirname(fileURLToPath(import.meta.url));
330
+ var pkg = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
331
+ var VERSION = pkg.version;
298
332
  var kofiGradient = gradient(["#FF6B6B", "#4ECDC4", "#FFE66D"]);
299
333
  function displayBanner() {
300
334
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kofi-stack",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Scaffold opinionated full-stack projects with Next.js, Convex, Better-Auth, and more",
5
5
  "type": "module",
6
6
  "bin": {