| 1 | --- |
| 2 | description: Compiler commit message convention |
| 3 | globs: |
| 4 | - compiler/**/*.js |
| 5 | - compiler/**/*.jsx |
| 6 | - compiler/**/*.ts |
| 7 | - compiler/**/*.tsx |
| 8 | - compiler/**/*.rs |
| 9 | - compiler/**/*.json |
| 10 | - compiler/**/*.md |
| 11 | --- |
| 12 | |
| 13 | When committing changes in the compiler directory, follow this convention: |
| 14 | |
| 15 | - **Rust port work** (files in `compiler/crates/` and/or `compiler/docs/rust-port`): prefix with `[rust-compiler]` |
| 16 | - **TS compiler work** (files in `compiler/packages/`): prefix with `[compiler]` |
| 17 | |
| 18 | Format: |
| 19 | ``` |
| 20 | [prefix] Title |
| 21 | |
| 22 | Summary of changes (1-3 sentences). |
| 23 | ``` |
| 24 | |
| 25 | Use `/compiler-commit` to automatically verify and commit with the correct convention. |