Commit 71ab7bc
authored
fix(init): add reactFeatures to feature display info (#658)
## Summary
Companion change for getsentry/cli-init-api#67 (fixes
getsentry/cli-init-api#65).
The server now sends `reactFeatures` as a known feature for React
projects. Without this change, the CLI would display the raw camelCase
string `"reactFeatures"` in the multi-select prompt.
## Changes
- Added `reactFeatures` to `FEATURE_INFO` in
`src/lib/init/clack-utils.ts` with label `"React Features"` and hint
`"Redux, component tracking, source maps, and integrations"`
- Added `reactFeatures` to `FEATURE_DISPLAY_ORDER` so it appears in a
consistent position in the multi-select prompt
## Testing
All 11 clack-utils tests pass.1 parent 58b766d commit 71ab7bc
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
0 commit comments