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
fix: correct postInstall comment and expand How to Add a Feature guide
postInstall field comment said "for agents and TUI" but only agents
use it — TUI hardcodes its own richer display. Updated to "for
non-interactive JSON output". Expanded the feature checklist to
include PostInstall.tsx and cli.tsx --help text as manual steps.
packages: string[] // pnpm packages to remove when deselected
71
71
default: boolean// --info output
72
-
postInstall?:string[] // post-install instructions for agents and TUI
72
+
postInstall?:string[] // post-install instructions for non-interactive JSON output
73
73
}>
74
74
```
75
75
@@ -168,11 +168,15 @@ Components are presentation-only — they call operations via `useEffect` and re
168
168
169
169
2.**`source/operations/cleanupFiles.ts`** — add a cleanup function and call it from `cleanupFiles()` when the feature is deselected. If the feature has scripts in package.json, add removal to `patchPackageJson`.
170
170
171
-
3.**Tests** — add test cases in `source/__tests__/operations/cleanupFiles.test.ts` for the new cleanup rules. The nonInteractive, info, installPackages, and utils tests pick up new features automatically since they read from `featureDefinitions`.
171
+
3.**`source/components/steps/PostInstall.tsx`** — if the feature has post-install instructions, add TUI rendering here. The component hardcodes its own display (richer than the `postInstall` strings in config), so new features with post-install steps need manual JSX.
4.**`source/cli.tsx`** — update the `--help` text to include the new feature name and description.
174
174
175
-
Steps 1 and 4 are always required. Steps 2-3 only apply if the feature has files/folders to clean up.
175
+
5.**Tests** — add test cases in `source/__tests__/operations/cleanupFiles.test.ts` for the new cleanup rules. The nonInteractive, info, installPackages, and utils tests pick up new features automatically since they read from `featureDefinitions`.
0 commit comments