Commit 85ebe0d
Generated `package.json` files for the azure-sdk-for-js monorepo were
pinning `tslib` to a hard-coded version (`^2.8.1`). The monorepo manages
shared tool/runtime versions through pnpm's catalog feature (see
`pnpm-workspace.yaml`), and other deps like `typescript`, `eslint`,
`rimraf`, etc. are already emitted as `catalog:`. `tslib` was the odd
one out, requiring a manual edit each regeneration to stay in sync with
the workspace catalog.
This switches the runtime dependency emitted by
`buildAzureMonorepoPackage` to `tslib: 'catalog:'` so it picks up
whatever the monorepo's catalog has pinned (`^2.8.1` today). Standalone
(non-monorepo) generators in `azurePackageCommon.ts` /
`packageCommon.ts` are intentionally left untouched, since `catalog:`
would not resolve outside the workspace.
Verified by running the `packageJson.test.ts` test-next suite (51/51
passing) and a `pnpm -r --filter '@azure-tools/typespec-ts...' build`.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent bb8a193 commit 85ebe0d
2 files changed
Lines changed: 8 additions & 1 deletion
File tree
- .chronus/changes
- packages/typespec-ts/src/rlc-common/metadata/package-json
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments