Skip to content

Commit

Permalink
refactor: reorganize imports and simplify package manager install arg…
Browse files Browse the repository at this point in the history
…uments
  • Loading branch information
rsaz committed Nov 26, 2024
1 parent 0388598 commit 4a7d259
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/new/form.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import chalk from "chalk";
import { execSync, spawn } from "node:child_process";
import { Presets, SingleBar } from "cli-progress";
import degit from "degit";
import inquirer from "inquirer";
import { execSync, spawn } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
import { BUNDLE_VERSION } from "../cli";
import { centerText } from "../utils/center-text";
import { printError } from "../utils/cli-ui";
import { changePackageName } from "../utils/change-package-info";
import { BUNDLE_VERSION } from "../cli";
import { exit } from "node:process";
import { printError } from "../utils/cli-ui";

async function packageManagerInstall({
packageManager,
Expand All @@ -23,7 +22,7 @@ async function packageManagerInstall({
const command: string =
process.platform === "win32" ? `${packageManager}.cmd` : packageManager;

const args = ["install", "--prefer-offline", "--silent"];
const args = ["install", "--silent"];
if (packageManager === "yarn") {
args.push("--ignore-engines");
args.splice(args.indexOf("--prefer-offline"), 1);
Expand Down

0 comments on commit 4a7d259

Please sign in to comment.