Skip to content

Commit 28cffb2

Browse files
chore: bump inquirer from 12.10.0 to 13.0.1 (#3768)
* chore: bump inquirer from 12.10.0 to 13.0.1 Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 12.10.0 to 13.0.1. - [Release notes](https://github.com/SBoudrias/Inquirer.js/releases) - [Commits](https://github.com/SBoudrias/Inquirer.js/compare/[email protected]@13.0.1) --- updated-dependencies: - dependency-name: inquirer dependency-version: 13.0.1 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix: migrate inquirer prompts from deprecated 'list' to 'select' for v13 compatibility - Replace type: 'list' with type: 'select' in 5 helper files - Add changeset for inquirer v13.0.1 update - Ensures compatibility with inquirer v13 breaking changes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Odin Thomas Rochmann <[email protected]>
1 parent 5f08e28 commit 28cffb2

File tree

8 files changed

+175
-137
lines changed

8 files changed

+175
-137
lines changed

.changeset/bump-inquirer-13.0.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@equinor/fusion-framework-cli": patch
3+
---
4+
5+
chore: bump inquirer from 12.10.0 to 13.0.1
6+
7+
Updated inquirer to v13.0.1 and migrated deprecated `list` prompt type to `select` for compatibility with inquirer v13 breaking changes.

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"commander": "^14.0.1",
111111
"deepmerge": "^4.3.1",
112112
"execa": "^9.6.0",
113-
"inquirer": "^12.9.6",
113+
"inquirer": "^13.0.1",
114114
"is-mergeable-object": "^1.1.1",
115115
"is-path-inside": "^4.0.0",
116116
"ora": "^9.0.0",

packages/cli/src/cli/commands/create/_helpers/check-target-directory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function checkTargetDirectory(
7474
// No clean flag, prompt user for action
7575
const { action } = await inquirer.prompt([
7676
{
77-
type: 'list',
77+
type: 'select',
7878
name: 'action',
7979
message: 'What would you like to do?',
8080
choices: [

packages/cli/src/cli/commands/create/_helpers/install-dependencies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function installDependencies(
3232
// Prompt user to select their preferred package manager
3333
const { packageManager } = await inquirer.prompt([
3434
{
35-
type: 'list',
35+
type: 'select',
3636
name: 'packageManager',
3737
message: '📦 Which package manager do you want to use?',
3838
choices: ['pnpm', 'npm'],

packages/cli/src/cli/commands/create/_helpers/open-in-ide.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function openInIDE(targetDir: string, logger: ConsoleLogger): Promi
4141
// Present IDE selection menu to user with supported options
4242
const { openInIDE } = await inquirer.prompt([
4343
{
44-
type: 'list',
44+
type: 'select',
4545
name: 'openInIDE',
4646
message: '🚀 Open project in IDE?',
4747
default: false,

packages/cli/src/cli/commands/create/_helpers/select-git-protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export async function selectGitProtocol(logger?: ConsoleLogger): Promise<GitClie
114114

115115
const { selectedProtocol } = await inquirer.prompt([
116116
{
117-
type: 'list',
117+
type: 'select',
118118
name: 'selectedProtocol',
119119
message: '🔐 Which Git protocol would you like to use for cloning?',
120120
choices: [

packages/cli/src/cli/commands/create/_helpers/select-template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function selectTemplate(
5454

5555
const { selectedTemplate } = await inquirer.prompt([
5656
{
57-
type: 'list',
57+
type: 'select',
5858
name: 'selectedTemplate',
5959
message: '🎨 Please select a template:',
6060
choices: templates.map((template) => ({

0 commit comments

Comments
 (0)