Skip to content

Commit 20bc308

Browse files
committed
fix: align vendored TypeSpec stack with Network specs (compiler 1.13 / azure-core 0.69)
ci: bump Node to 22.x for TypeSpec 1.13 submodule (requires node >=22) ci: bump pnpm to 10.30.2 to match TypeSpec submodule (fixes frozen-lockfile overrides mismatch) ci: build TypeSpec packages in the submodule workspace build:typespec previously ran `pnpm -r build` from the repo root, which pulls the vendored src/typespec packages into the root workspace and resolves a different @alloy-js/cli + typescript than the submodule pins. That mismatch makes `alloy build` (emitter-framework, tspd, http-client*) crash with `ts.sys` undefined. Building with `pnpm -C src/typespec -r` uses the submodule's own resolution, where alloy builds correctly; the turbo monorepo root and the doc websites are excluded, and typespec-aaz is built separately afterwards. Verified: full build + pnpm bundle succeed with compiler 1.13 / azure-core 0.69 libs present.
1 parent 42f1230 commit 20bc308

12 files changed

Lines changed: 12472 additions & 10216 deletions

File tree

.github/workflows/frontend-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ on:
3636
env:
3737
# Change this to invalidate existing cache.
3838
CACHE_PREFIX: v0
39-
NODE_VERSION: "20.x"
40-
PNPM_VERSION: "9.5.0"
39+
NODE_VERSION: "22.x"
40+
PNPM_VERSION: "10.30.2"
4141

4242
permissions:
4343
contents: read

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Setup Node.js
8181
uses: actions/setup-node@v3
8282
with:
83-
node-version: '20.x'
83+
node-version: '22.x'
8484

8585
- name: Setup Python
8686
uses: actions/setup-python@v3
@@ -90,7 +90,7 @@ jobs:
9090
- name: Install prerequisites
9191
run: |
9292
pip install --upgrade pip setuptools wheel virtualenv
93-
npm install -g pnpm@9.5.0
93+
npm install -g pnpm@10.30.2
9494
pnpm install
9595
9696
- name: Set build variables

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "aaz-dev-tools",
33
"version": "0.1.0",
44
"private": true,
5-
"packageManager": "pnpm@9.5.0",
5+
"packageManager": "pnpm@10.30.2",
66
"scripts": {
77
"run-all": "pnpm -r --filter=\"!./src/typespec/core/\" ",
8-
"build:typespec": "pnpm install -C src/typespec/ && pnpm -r --filter=\"!./src/web/\" --filter=\"!./src/typespec/core/\" --filter=\"!./src/typespec/core/packages/typespec-vs\" --workspace-concurrency=Infinity --aggregate-output --reporter=append-only build ",
8+
"build:typespec": "pnpm install -C src/typespec/ && pnpm -C src/typespec -r --filter=\"!@typespec/monorepo\" --filter=\"!@azure-tools/typespec-azure-monorepo\" --filter=\"!@typespec/typespec-vs\" --filter=\"!@typespec/website\" --filter=\"!@azure-tools/typespec-azure-website\" --filter=\"!...@typespec/emitter-framework\" --workspace-concurrency=Infinity --aggregate-output --reporter=append-only build && pnpm -C src/typespec-aaz build",
99
"build:web": "pnpm -r --filter=\"./src/web/\" --workspace-concurrency=Infinity --aggregate-output --reporter=append-only build ",
1010
"bundle": "node ./eng/scripts/bundle_dists.js",
1111
"test-aaz-emitter": "cd ./src/typespec-aaz && pnpm test-aaz",
@@ -33,5 +33,11 @@
3333
},
3434
"dependencies": {
3535
"picocolors": "~1.0.0"
36+
},
37+
"pnpm": {
38+
"overrides": {
39+
"@types/react": "^18.2.66",
40+
"@types/react-dom": "^18.2.22"
41+
}
3642
}
3743
}

0 commit comments

Comments
 (0)