complete-cli 1.0.5-dev.4 → 1.0.5

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/main.cjs CHANGED
@@ -61104,6 +61104,7 @@ async function monorepoPublish(updateMonorepo = true) {
61104
61104
  // Validate that we are on the correct branch. (Allow bumping dev on a branch so that we can avoid
61105
61105
  // polluting the main branch.)
61106
61106
  const branchName = await (0,_execa_js__WEBPACK_IMPORTED_MODULE_3__.$o) `git branch --show-current`;
61107
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
61107
61108
  if (branchName !== "main" && versionBump !== VersionBump.dev) {
61108
61109
  (0,_scriptHelpers_js__WEBPACK_IMPORTED_MODULE_9__.echo)("Error: You must be on the main branch before publishing.");
61109
61110
  (0,_scriptHelpers_js__WEBPACK_IMPORTED_MODULE_9__.exit)(1);
@@ -62681,7 +62682,7 @@ async function getPackagesToIgnore(packageRoot) {
62681
62682
  }
62682
62683
  /** @returns Whether the "package.json" file was changed by `npm-check-updates`. */
62683
62684
  async function runNPMCheckUpdates(packageJSONPath, packagesToIgnore, quiet) {
62684
- const upgradedPackages = await npm_check_updates__WEBPACK_IMPORTED_MODULE_2___default().run({
62685
+ const upgradedPackages = await (0,npm_check_updates__WEBPACK_IMPORTED_MODULE_2__.run)({
62685
62686
  upgrade: true,
62686
62687
  packageFile: packageJSONPath,
62687
62688
  // TODO: Remove the below type assertion when this pull request is merged:
@@ -63772,9 +63773,9 @@ async function installNodeModules(projectPath, skipInstall, packageManager) {
63772
63773
  const command = (0,complete_node__WEBPACK_IMPORTED_MODULE_1__.getPackageManagerInstallCommand)(packageManager);
63773
63774
  const s = (0,_prompt_js__WEBPACK_IMPORTED_MODULE_5__.promptSpinnerStart)(`Installing the project dependencies with "${command}". (This can take a long time.)`);
63774
63775
  try {
63775
- const $$ = (0,complete_node__WEBPACK_IMPORTED_MODULE_1__.$)({ cwd: projectPath });
63776
+ const $$q = (0,complete_node__WEBPACK_IMPORTED_MODULE_1__.$q)({ cwd: projectPath });
63776
63777
  const commandParts = command.split(" ");
63777
- await $$ `${commandParts}`;
63778
+ await $$q `${commandParts}`;
63778
63779
  s.stop("Installed.");
63779
63780
  }
63780
63781
  catch {
@@ -63783,8 +63784,8 @@ async function installNodeModules(projectPath, skipInstall, packageManager) {
63783
63784
  }
63784
63785
  }
63785
63786
  async function formatFiles(projectPath) {
63786
- const $$ = (0,complete_node__WEBPACK_IMPORTED_MODULE_1__.$)({ cwd: projectPath });
63787
- await $$ `prettier --write ${projectPath}`;
63787
+ const $$q = (0,complete_node__WEBPACK_IMPORTED_MODULE_1__.$q)({ cwd: projectPath });
63788
+ await $$q `prettier --write ${projectPath}`;
63788
63789
  }
63789
63790
 
63790
63791
 
@@ -64034,10 +64035,7 @@ async function installVSCodeExtensions(projectPath, vsCodeCommand) {
64034
64035
  return;
64035
64036
  }
64036
64037
  const extensions = await getExtensionsFromJSON(projectPath);
64037
- for (const extensionName of extensions) {
64038
- // eslint-disable-next-line no-await-in-loop
64039
- await (0,complete_node__WEBPACK_IMPORTED_MODULE_0__.$) `${vsCodeCommand} --install-extension ${extensionName}`;
64040
- }
64038
+ await Promise.all(extensions.map(async (extension) => await (0,complete_node__WEBPACK_IMPORTED_MODULE_0__.$q) `${vsCodeCommand} --install-extension ${extension}`));
64041
64039
  }
64042
64040
  async function getExtensionsFromJSON(projectPath) {
64043
64041
  const extensionsJSONPath = node_path__WEBPACK_IMPORTED_MODULE_1___default().join(projectPath, ".vscode", "extensions.json");