betterstart-cli 0.0.34 → 0.0.35

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/cli.js CHANGED
@@ -1664,8 +1664,8 @@ function ensureDatabasePushDependencies(cwd, pm) {
1664
1664
  Installing database push dependencies (${missing.map((dependency) => dependency.name).join(", ")})...`
1665
1665
  );
1666
1666
  for (const dependency of missing) {
1667
- const installed = installDependency(cwd, pm, dependency.name, dependency.dev);
1668
- if (!installed) {
1667
+ const installed2 = installDependency(cwd, pm, dependency.name, dependency.dev);
1668
+ if (!installed2) {
1669
1669
  console.log(` Failed to install ${dependency.name}`);
1670
1670
  return false;
1671
1671
  }
@@ -3605,7 +3605,7 @@ async function installIntegrations({
3605
3605
  const orderedIntegrationIds = resolveIntegrationInstallOrder(integrationIds);
3606
3606
  const installedIntegrationIds = normalizeInstalledIntegrations(config);
3607
3607
  const skipped = [];
3608
- const installed = [];
3608
+ const installed2 = [];
3609
3609
  const activated = [];
3610
3610
  const warnings = [];
3611
3611
  for (const integrationId of orderedIntegrationIds) {
@@ -3704,7 +3704,7 @@ async function installIntegrations({
3704
3704
  });
3705
3705
  saveInstalledIntegrationManifest(cwd, manifest);
3706
3706
  writeConfigFile(cwd, config);
3707
- installed.push(integrationId);
3707
+ installed2.push(integrationId);
3708
3708
  if (!configureResult.configured && isProviderIntegration(definition)) {
3709
3709
  warnings.push(
3710
3710
  `${integrationId} was installed but not activated because its required environment variables are still missing.`
@@ -3712,7 +3712,7 @@ async function installIntegrations({
3712
3712
  }
3713
3713
  }
3714
3714
  return {
3715
- installed,
3715
+ installed: installed2,
3716
3716
  activated,
3717
3717
  skipped,
3718
3718
  warnings,
@@ -18727,7 +18727,7 @@ async function installPlugins({
18727
18727
  const orderedPluginIds = resolvePluginInstallOrder(pluginIds);
18728
18728
  const installedPluginIds = normalizeInstalledPlugins(config);
18729
18729
  const skipped = [];
18730
- const installed = [];
18730
+ const installed2 = [];
18731
18731
  const warnings = [];
18732
18732
  ensureSnapshotGitFiles(cwd);
18733
18733
  for (const pluginId of orderedPluginIds) {
@@ -18796,10 +18796,10 @@ async function installPlugins({
18796
18796
  };
18797
18797
  saveInstalledPluginManifest(cwd, manifest);
18798
18798
  writeConfigFile(cwd, config);
18799
- installed.push(pluginId);
18799
+ installed2.push(pluginId);
18800
18800
  }
18801
18801
  return {
18802
- installed,
18802
+ installed: installed2,
18803
18803
  skipped,
18804
18804
  warnings,
18805
18805
  config
@@ -21828,6 +21828,30 @@ import fs39 from "fs";
21828
21828
  import path50 from "path";
21829
21829
  import * as p17 from "@clack/prompts";
21830
21830
 
21831
+ // core-engine/utils/prompt-theme.ts
21832
+ var GREEN_STEP_SUBMIT = "\x1B[32m\u25C7\x1B[39m";
21833
+ var GREEN_CHECK = "\x1B[32m\u2713\x1B[39m";
21834
+ function restyleStepSubmitSymbols(text7) {
21835
+ return text7.split(GREEN_STEP_SUBMIT).join(GREEN_CHECK);
21836
+ }
21837
+ var installed = false;
21838
+ function installPromptCheckmarks() {
21839
+ if (installed || !process.stdout.isTTY || process.env.CI === "true") return () => {
21840
+ };
21841
+ installed = true;
21842
+ const unpatched = process.stdout.write;
21843
+ const original = unpatched.bind(process.stdout);
21844
+ process.stdout.write = ((chunk, encoding, callback) => original(
21845
+ typeof chunk === "string" ? restyleStepSubmitSymbols(chunk) : chunk,
21846
+ encoding,
21847
+ callback
21848
+ ));
21849
+ return () => {
21850
+ process.stdout.write = unpatched;
21851
+ installed = false;
21852
+ };
21853
+ }
21854
+
21831
21855
  // adapters/next/init/prompts/database.ts
21832
21856
  import { execFileSync as execFileSync4 } from "child_process";
21833
21857
  import * as p10 from "@clack/prompts";
@@ -25387,6 +25411,7 @@ function removeExistingAdminPaths(cwd, namespaces) {
25387
25411
  return removed;
25388
25412
  }
25389
25413
  async function runInitCommand(name, options) {
25414
+ installPromptCheckmarks();
25390
25415
  p17.box(
25391
25416
  `
25392
25417
  \u2584 \u2597 \u2597 \u2584\u2596\u2597 \u2597