Skip to content

Commit 77c210f

Browse files
chore: version packages (#52)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a489a29 commit 77c210f

File tree

4 files changed

+37
-34
lines changed

4 files changed

+37
-34
lines changed

.changeset/fix-import-paths.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/stale-artifact-cleanup.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# tangrams
22

3+
## 0.13.0
4+
5+
### Minor Changes
6+
7+
- a489a29: Add `--clean` flag to remove stale source directories when sources are renamed or removed from configuration.
8+
9+
**New CLI flags:**
10+
11+
- `--clean` - Detects and removes orphaned source directories from previous generations
12+
- `--yes` / `-y` - Skips confirmation prompts (use with `--clean`)
13+
14+
**Features:**
15+
16+
- Automatically detects source renames by comparing configuration fingerprints (schema URL, spec path, document patterns)
17+
- When a rename is detected, copies `client.ts` to the new source directory before removing the old one, preserving user customizations
18+
- Prompts for confirmation before deleting directories (unless `--yes` is provided)
19+
- In watch mode with `--clean`, cleanup runs automatically without prompts on config changes
20+
- Generates a `.gitignore` in the `tangrams/` output directory to exclude the manifest file from version control
21+
22+
**Example usage:**
23+
24+
```bash
25+
# Clean up stale artifacts with confirmation
26+
tangrams generate --clean
27+
28+
# Clean up without prompting
29+
tangrams generate --clean --yes
30+
31+
# Watch mode with automatic cleanup
32+
tangrams generate --watch --clean
33+
```
34+
35+
### Patch Changes
36+
37+
- 8c4f56e: Fix inconsistent relative import paths in generated output. Previously, some imports were generated as `./../schema` instead of `../schema`. This change introduces a `getRelativeImportPath` utility that properly normalizes all relative import paths, and makes all import path calculations dynamic (removing hardcoded `FUNCTIONS_IMPORT_PATH` constants) for consistency and future flexibility.
38+
339
## 0.12.1
440

541
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tangrams",
3-
"version": "0.12.1",
3+
"version": "0.13.0",
44
"description": "Code generation for the TanStack ecosystem",
55
"type": "module",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)