Commit 3fac128
authored
fix: fix
Deps might actually be undefined if some of our packages don't depend on
any others (like for the `account-api`).
So we need to add fallback records for those cases.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Ensures the preview build script tolerates packages without dependency
sections.
>
> - In `scripts/prepare-preview-builds.ts`, default `dependencies` and
`peerDependencies` to `{}` before mutation when moving peer deps to
`dependencies` and when pinning workspace versions in
`dependencies`/`devDependencies`
> - Prevents errors when a package lacks
`dependencies`/`peerDependencies`
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d09be21. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->prepare-preview-builds.ts (#444)1 parent 7279322 commit 3fac128
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments