Commit dc66a27
cli: drop
Follow-up to #530, which marked `mops migrate` as experimental in the
docs but missed a few CLI hints that still pushed users at it.
## What users will see
**Before:** `mops check` / `mops check-stable` failing on a
stable-compatibility regression printed an extra hint:
> Hint: You may need a migration. Run `mops migrate new <Name>` to
create one.
**After:** that hint is gone. `moc`'s underlying compatibility error
already links to the migration docs, and the hint guessed at the cause —
it could equally be a missing new migration or a bug in an existing one.
**Before:** `mops check`/`build`/`check-stable` failing because the
chain dir doesn't exist:
> Migration chain directory not found: migrations
> Run `mops migrate new <Name>` to initialize the migration chain.
**After:** points at the recommended workflow instead:
> Migration chain directory not found: migrations
> Create the directory and add a `.mo` migration file to initialize the
chain.
Also dropped the matching "a hint is shown suggesting to create a new
migration" sentence from the `mops check-stable` docs page, which is no
longer accurate.
## Why
#530's PR description called this out as a follow-up: with `mops
migrate` flagged experimental, the CLI shouldn't keep nudging users
toward it. The `mops migrate` command itself still exists and works for
those who want it.
## Test plan
- [x] `npm test -- migrate.test.ts` (19 tests, 12 snapshots, all green)
- [x] `npm run check` (TypeScript + svelte-check, pre-commit hook clean)
Made with [Cursor](https://cursor.com)
Co-authored-by: Cursor <cursoragent@cursor.com>mops migrate recommendations from check/build (#531)1 parent aa90dd8 commit dc66a27
7 files changed
Lines changed: 7 additions & 17 deletions
File tree
- cli
- commands
- helpers
- tests
- __snapshots__
- docs/docs/cli/4-dev
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
144 | | - | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
| |||
169 | 167 | | |
170 | 168 | | |
171 | 169 | | |
172 | | - | |
173 | 170 | | |
174 | 171 | | |
175 | 172 | | |
| |||
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | 238 | | |
249 | 239 | | |
250 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
245 | | - | |
| 244 | + | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments