You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/superpowers/specs/2026-03-26-env-command-design.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Six sections, organized from system-level down to project-specific:
28
28
### 2. Binaries
29
29
30
30
- Node.js version (via `process.version`)
31
-
- Package manager: detect which of npm/pnpm/yarn/bun/utoo is available and their versions (via `execFileSync`)
31
+
- Package manager: detect which of npm/pnpm/yarn/bun is available and their versions (via `execFileSync`)
32
32
- npm registry: current configured registry URL (via `npm config get registry` or equivalent)
33
33
34
34
### 3. Browsers
@@ -230,14 +230,13 @@ src/commands/env.ts
230
230
231
231
### Key Implementation Details
232
232
233
-
1.**System/Binaries**: Use `node:os` for OS, `process.version` for Node, `execFileSync` to detect package manager versions (npm/pnpm/yarn/bun/utoo), `npm config get registry` for registry URL
233
+
1.**System/Binaries**: Use `node:os` for OS, `process.version` for Node, `execFileSync` to detect package manager versions (npm/pnpm/yarn/bun), `npm config get registry` for registry URL
234
234
2.**Browsers**: Use `envinfo` — the one dependency that provides real value here (cross-platform browser detection logic is non-trivial)
235
235
3.**Core Dependencies**: Read `node_modules/<pkg>/package.json` using the existing `readJson()` utility from `scan.ts`
236
236
4.**Ecosystem scan**: `readdirSync('node_modules/@ant-design')` and filter `node_modules/rc-*`, read each `package.json` for version
237
237
5.**Build Tools**: Predefined list, check `node_modules/<pkg>/package.json` existence and version
238
238
6.**Not-found core deps**: Show `Not found` in text, `null` in JSON
239
239
7.**Ecosystem/rc-* packages**: Only list installed ones (no "Not found" noise)
240
-
8.**`--detail` flag**: When set, also shows the version range from `package.json` dependencies alongside the installed version (e.g., `antd: 5.22.0 (^5.20.0)`)
0 commit comments