{{ message }}
Repository navigation
Commit fd7724a
feat(cli): allow comma-separated packages in --major/--minor/--patch (#2135)
* feat(cli): allow comma-separated packages in --major/--minor/--patch
changeset add --minor pkg1,pkg2 now expands to per-package entries,
equivalent to --minor pkg1 --minor pkg2. Whitespace is trimmed and empty
entries dropped; single packages and repeated flags are unchanged.
* test(cli): cover comma-split trimming/empty-drop and --ignore
Address review feedback: add tests for the whitespace trimming and
.filter(Boolean) empty-entry dropping in the comma-separated flag
expansion, and cover the version command's --ignore flag which shares
the same normalizeOptions path. Note the --ignore support (and the
trim/empty behavior) in the changeset entry.
---------
Co-authored-by: youdie006 <youdie006@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>1 parent 489360a commit fd7724a
3 files changed
Lines changed: 53 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
90 | 112 | | |
91 | 113 | | |
92 | 114 | | |
| |||
103 | 125 | | |
104 | 126 | | |
105 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
106 | 142 | | |
107 | 143 | | |
108 | 144 | | |
| |||

0 commit comments