Skip to content

Context7 Platform -- Up-to-date docs for AI agents

fix(cli): declare @inquirer/core as direct dependency (#2653)

Fahreddin Özcandea0e4318d4a
diff --git a/.changeset/cli-inquirer-core-dep.md b/.changeset/cli-inquirer-core-dep.md
new file mode 100644
index 00000000..e2de36a9
--- /dev/null
+++ b/.changeset/cli-inquirer-core-dep.md
@@ -0,0 +1,5 @@
+---
+"ctx7": patch
+---
+
+Declare `@inquirer/core` as a direct dependency of the CLI. It was previously imported in `selectOrInput.ts` but only resolvable as a transitive of `@inquirer/prompts`, which caused `ctx7` to fail at startup with `ERR_MODULE_NOT_FOUND` under pnpm's isolated node linker.
diff --git a/packages/cli/package.json b/packages/cli/package.json
index f3b5552f..23ed3b7d 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -22,6 +22,7 @@
"test:watch": "vitest"
},
"dependencies": {
+ "@inquirer/core": "^11.1.1",
"@inquirer/prompts": "^8.2.0",
"commander": "^13.1.0",
"figlet": "^1.9.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1654ca59..1b34ebfd 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -48,6 +48,9 @@ importers:
packages/cli:
dependencies:
+ '@inquirer/core':
+ specifier: ^11.1.1
+ version: 11.1.1(@types/[email protected])
'@inquirer/prompts':
specifier: ^8.2.0
version: 8.2.0(@types/[email protected])