complete-cli 1.0.5-dev.5 → 1.0.6

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
@@ -60317,7 +60317,7 @@ async function $o(templates, ...expressions) {
60317
60317
  * will not be passed to the console.
60318
60318
  *
60319
60319
  * This is a wrapper around the `$` function from `execa`. (The quiet behavior is how the vanilla
60320
- * version of the "$" function works, so this is just a wrapper with no additional modifications.)
60320
+ * version of the `$` function works, so this is just a wrapper with no additional modifications.)
60321
60321
  */
60322
60322
  // If we re-export the function, then it will no longer have our JSDoc comment above.
60323
60323
  // eslint-disable-next-line unicorn/prefer-export-from
@@ -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);
@@ -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");