From eab2f3972e9c7b56a149761ac10e8e43b0a9339c Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Thu, 19 Dec 2024 22:11:15 +0300 Subject: [PATCH] fix: less dependencies --- packages/create-webpack-app/package.json | 3 ++- packages/create-webpack-app/src/index.ts | 2 +- packages/create-webpack-app/src/utils/generate-files.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/create-webpack-app/package.json b/packages/create-webpack-app/package.json index f7150ca8e18..17d22ac341a 100644 --- a/packages/create-webpack-app/package.json +++ b/packages/create-webpack-app/package.json @@ -42,7 +42,8 @@ "!**/*.d.ts" ], "dependencies": { - "@inquirer/prompts": "^7.2.0", + "@inquirer/expand": "^4.0.3", + "@inquirer/select": "^4.0.3", "colorette": "^2.0.20", "commander": "^12.1.0", "cross-spawn": "^7.0.3", diff --git a/packages/create-webpack-app/src/index.ts b/packages/create-webpack-app/src/index.ts index a9a752c9720..03e38001828 100644 --- a/packages/create-webpack-app/src/index.ts +++ b/packages/create-webpack-app/src/index.ts @@ -1,6 +1,6 @@ import { Command } from "commander"; import { resolve, dirname } from "path"; -import { select } from "@inquirer/prompts"; +import select from "@inquirer/select"; import nodePlop, { type PlopGenerator } from "node-plop"; import { fileURLToPath } from "url"; diff --git a/packages/create-webpack-app/src/utils/generate-files.ts b/packages/create-webpack-app/src/utils/generate-files.ts index 1ee22c98f03..270ca906a88 100644 --- a/packages/create-webpack-app/src/utils/generate-files.ts +++ b/packages/create-webpack-app/src/utils/generate-files.ts @@ -1,6 +1,6 @@ import * as fs from "fs/promises"; import * as ejs from "ejs"; -import { expand } from "@inquirer/prompts"; +import expand from "@inquirer/expand"; import { spawn, sync } from "cross-spawn"; import * as path from "path"; import { fileURLToPath } from "url";