Skip to content

Commit 3148a03

Browse files
authored
release: CLI v2.12.0 (#501)
Release CLI v2.12.0. Made with [Cursor](https://cursor.com)
1 parent 256e0c7 commit 3148a03

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

cli/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Mops CLI Changelog
22

33
## Next
4+
5+
## 2.12.0
46
- Migration staging directory moved from `.mops/.migrations/<canister>/` to `<parent-of-chain>/.migrations-<canister>/`, so migration files can import shared modules from sibling folders (e.g. a `types/` folder next to `migrations/`) — relative imports now resolve to the same target whether moc reads the original chain dir or the staged one. The staged dir self-stamps a `.gitignore` so it doesn't pollute `git status`; `mops init` now also adds `.migrations-*/` to the project `.gitignore`
57
- `[canisters.<name>.migrations]` now requires `chain` and `next` to share the same parent directory (any layout where the parents differed is rejected with a clear error). The default layout `chain = "migrations"` + `next = "next-migration"` already satisfies this. For per-canister setups, use sibling subdirectories, e.g. `chain = "src/backend/migrations"` + `next = "src/backend/next-migration"`
68

cli/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ic-mops",
3-
"version": "2.11.0",
3+
"version": "2.12.0",
44
"type": "module",
55
"bin": {
66
"mops": "dist/bin/mops.js",

0 commit comments

Comments
 (0)