@popina/cli 5.0.2 → 5.0.3-20260527091921Z

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/build/index.js CHANGED
@@ -279,8 +279,8 @@ async function loginGoogle() {
279
279
  }
280
280
 
281
281
  // src/utils/get-env-config.ts
282
- import path from "path";
283
282
  import fse2 from "fs-extra";
283
+ import path from "path";
284
284
  var removeDirectory = (dir) => {
285
285
  try {
286
286
  fse2.rmSync(dir, { recursive: true });
@@ -11461,7 +11461,7 @@ function date4(params) {
11461
11461
  config(en_default());
11462
11462
 
11463
11463
  // package.json
11464
- var version2 = "5.0.2";
11464
+ var version2 = "5.0.3-20260527091921Z";
11465
11465
 
11466
11466
  // src/utils/get-package-info.ts
11467
11467
  async function getPackageInfo() {
@@ -11477,8 +11477,8 @@ import * as p12 from "@clack/prompts";
11477
11477
  import { $ as $14 } from "zx/core";
11478
11478
 
11479
11479
  // src/utils/gh/login-to-github.ts
11480
- import { spawnSync } from "child_process";
11481
11480
  import * as p11 from "@clack/prompts";
11481
+ import { spawnSync } from "child_process";
11482
11482
  async function loginGH() {
11483
11483
  p11.log.info("Logging in with GitHub CLI using device authentication...");
11484
11484
  await p11.group(
@@ -11568,7 +11568,7 @@ async function checkPnpm() {
11568
11568
  );
11569
11569
  process.exit(0);
11570
11570
  });
11571
- const requiredVersion = "10.33.0";
11571
+ const requiredVersion = "11.1.3";
11572
11572
  const currentVersion = pnpmVersion.trim();
11573
11573
  if (!compareVersions(currentVersion, requiredVersion)) {
11574
11574
  p13.log.warn(
@@ -12402,7 +12402,7 @@ ui.addCommand(component).addCommand(icon);
12402
12402
 
12403
12403
  // src/cmd/gen.ts
12404
12404
  $23.shell = true;
12405
- var gen = new Command11().name("gen").alias("g").description("Generate a new component").action(() => {
12405
+ var gen = new Command11().name("gen").alias("g").description("Generate a new component").action((_r) => {
12406
12406
  $23.spawn(`pnpx turbo gen`, { stdio: "inherit", shell: true });
12407
12407
  });
12408
12408
  gen.addCommand(ui).addCommand(api);
@@ -12550,10 +12550,25 @@ var init = new Command12().name("init").alias("i").description(
12550
12550
  });
12551
12551
  s.stop(`\u{1F331} We added some data to your database! You're ready to go!`);
12552
12552
  }
12553
- const nextSteps = `cd ${init2.name}
12554
- ${init2.install ? "" : "pnpm\n"}
12555
- ${db.database ? "" : "pnpm db:start && pnpm db:migrate && db:seed\n"}${env2.fetch ? "" : "cp .env.example > .env # You need to manually add some env vars\n"}pnpm dev
12556
- `;
12553
+ const nextStepsLines = [`cd ${init2.name}`];
12554
+ if (!init2.install) {
12555
+ nextStepsLines.push("pnpm");
12556
+ }
12557
+ if (!db.database) {
12558
+ nextStepsLines.push("pnpm db:start && pnpm db:migrate && pnpm db:seed");
12559
+ }
12560
+ if (!env2.fetch) {
12561
+ nextStepsLines.push(
12562
+ "Run `popina env pull` to download local environment variables"
12563
+ );
12564
+ }
12565
+ nextStepsLines.push("popina list");
12566
+ nextStepsLines.push("popina dev");
12567
+ nextStepsLines.push("");
12568
+ nextStepsLines.push(
12569
+ "In popina dev, keep default selected services for a minimal setup."
12570
+ );
12571
+ const nextSteps = nextStepsLines.join("\n");
12557
12572
  p20.note(nextSteps, `Discover Popina \u{1F50D}`);
12558
12573
  p20.note(
12559
12574
  `Check out Linear : https://linear.app/pragmapos/team/WEB