@rebasepro/cli 0.19.1 → 0.19.2-canary.g08eed46

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/dist/index.es.js CHANGED
@@ -1653,7 +1653,7 @@ function buildInitQuestions(params) {
1653
1653
  type: "input",
1654
1654
  name: "projectName",
1655
1655
  message: "Project name:",
1656
- default: "my-rebase-app",
1656
+ default: "my-app",
1657
1657
  validate: (input) => validateProjectName(input) ?? true
1658
1658
  });
1659
1659
  if (headlessArg === void 0) questions.push({
@@ -1721,7 +1721,7 @@ ${chalk.bold("Usage")}
1721
1721
  rebase init ${chalk.blue("[name]")} [options]
1722
1722
 
1723
1723
  ${chalk.gray("The name may be a nested path (apps/my-app) or \".\" for the current directory.")}
1724
- ${chalk.gray("Defaults to \"my-rebase-app\" when omitted with --yes.")}
1724
+ ${chalk.gray("Asks when omitted; defaults to \"my-app\", and takes it without asking under --yes.")}
1725
1725
 
1726
1726
  ${chalk.bold("Options")}
1727
1727
  ${chalk.blue("-t, --template")} ${chalk.gray("<preset>")} blog | ecommerce | blank ${chalk.gray("(default: blog)")}
@@ -1803,7 +1803,7 @@ async function promptForOptions(rawArgs, pm) {
1803
1803
  const installFlag = noInstall ? false : args["--install"] ?? false;
1804
1804
  const hasInstallFlag = noInstall || args["--install"] === true;
1805
1805
  if (isNonInteractive) {
1806
- const projectName = nameArg || "my-rebase-app";
1806
+ const projectName = nameArg || "my-app";
1807
1807
  const targetDirectory = path.resolve(process.cwd(), projectName);
1808
1808
  const templateDirectory = path.resolve(cliRoot, "templates", "template");
1809
1809
  const pmCommands = getPMCommands(pm);
@@ -5486,11 +5486,17 @@ function projectHasCollections(projectRoot) {
5486
5486
  * Boot created all 30 tables through the additive ensure, `/health` answered
5487
5487
  * 200, auth worked, the admin panel loaded — and every single
5488
5488
  * `GET /api/data/*` returned a 500, `Table not found for collection 'posts'`,
5489
- * because the driver looks the table up in the generated file rather than in the
5490
- * database. A stranger following the README had no way to guess that
5489
+ * because the driver looked the table up in the generated file rather than in
5490
+ * the database. A stranger following the README had no way to guess that
5491
5491
  * `pnpm run schema:generate` was the missing step, and the README told them the
5492
5492
  * schema was pushed for them.
5493
5493
  *
5494
+ * That failure is fixed at the root — the driver builds its tables from
5495
+ * `information_schema` now, so a stub `schema.generated.ts` cannot empty the
5496
+ * API. This still runs, because the file is a real artifact for everything
5497
+ * around the server: `db push` diffs it, Atlas plans from it, `eject` writes it
5498
+ * out, and application code imports it.
5499
+ *
5494
5500
  * ## Why it runs unconditionally
5495
5501
  *
5496
5502
  * Generation reads collection files and writes one file. It needs no database,