@sanity/cli 4.14.3-next.8 → 4.15.0-next.10

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.
@@ -8142,7 +8142,7 @@ Examples
8142
8142
  }
8143
8143
  });
8144
8144
  if (!success) throw new Error(error2);
8145
- shouldOpen && open(`http://localhost:${flags.port}`);
8145
+ shouldOpen && await open(`http://localhost:${flags.port}`);
8146
8146
  }
8147
8147
  }, helpText$e = `
8148
8148
  Commands
@@ -27930,7 +27930,7 @@ async function login(args, context) {
27930
27930
  ${actionText} ${loginUrl.href}
27931
27931
  `);
27932
27932
  const spin = output.spinner("Waiting for browser login to complete... Press Ctrl + C to cancel").start();
27933
- shouldLaunchBrowser && open(loginUrl.href);
27933
+ shouldLaunchBrowser && await open(loginUrl.href);
27934
27934
  let authToken;
27935
27935
  try {
27936
27936
  authToken = (await tokenPromise).token, spin.stop();
@@ -38843,7 +38843,7 @@ async function bootstrapLocalTemplate(opts, context) {
38843
38843
  );
38844
38844
  let packageJsonName = packageName;
38845
38845
  isAppTemplate && (packageJsonName = lodashExports.deburr(path__default.default.basename(outputPath).toLowerCase()).replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "")), spinner = output.spinner("Creating default project files").start();
38846
- const packageManifest = await createPackageManifest({
38846
+ const packageManifest = createPackageManifest({
38847
38847
  name: packageJsonName,
38848
38848
  dependencies,
38849
38849
  devDependencies,
@@ -70897,7 +70897,7 @@ function runUpdateCheck(options2) {
70897
70897
  getCliConfig.debug("Has already printed result through timeout check, skipping result notification");
70898
70898
  return;
70899
70899
  }
70900
- printResult2(result);
70900
+ await printResult2(result);
70901
70901
  }
70902
70902
  async function printCachedResult() {
70903
70903
  getCliConfig.debug("Max time (%dms) reached waiting for latest version info", MAX_BLOCKING_TIME), hasPrintedResult = !0;