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
Copy file name to clipboardExpand all lines: .cursor/rules/pr-to-main.mdc
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ alwaysApply: true
5
5
6
6
# PR-to-Main Requirements
7
7
8
-
Every pull request that targets `main` **must** satisfy the two gates below before it can be opened. Treat these as blocking — do not create the PR until both are done.
8
+
Every pull request that targets `main` **must** satisfy the three gates below before it can be opened. Treat these as blocking — do not create the PR until all are done.
9
9
10
10
## 1. Update "What's New"
11
11
@@ -19,7 +19,20 @@ The in-app changelog lives in `flexfoil-ui/src/lib/version.ts` (the `CHANGELOG`
19
19
- `fixed` — bug fix
20
20
- Keep descriptions concise (one sentence, no period).
21
21
22
-
## 2. Keep Documentation in Sync
22
+
## 2. Bump Distribution Versions
23
+
24
+
All version numbers **must** stay in sync with the changelog's latest entry.
25
+
26
+
| File | Field | Must match |
27
+
|------|-------|------------|
28
+
| `flexfoil-ui/package.json` | `"version"` | Top `CHANGELOG` entry version (drives `__APP_VERSION__` via Vite) |
29
+
| `packages/flexfoil-python/pyproject.toml` | `version` | Bump if the PR touches **anything** in `packages/flexfoil-python/`, `crates/rustfoil-python/`, solver behavior, or the WASM bridge. Skip only if the PR is purely UI cosmetic. |
30
+
31
+
- Use semver: bump **patch** for fixes, **minor** for new features, **major** for breaking changes.
32
+
- The `package.json` version and the top `CHANGELOG` entry version must always be identical after the PR.
33
+
- When in doubt about whether the Python package needs a bump, bump it — users should always be able to `pip install --upgrade flexfoil` to get the latest solver/API changes.
34
+
35
+
## 3. Keep Documentation in Sync
23
36
24
37
The docs site lives in `docs-site/docs/` (Docusaurus `.mdx` files).
25
38
@@ -32,9 +45,11 @@ The docs site lives in `docs-site/docs/` (Docusaurus `.mdx` files).
32
45
When drafting the PR description, include this checklist (filled in):
0 commit comments