Skip to content
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f586d84
Remove rush files
Jul 7, 2025
8516520
switch to use pnpm
Jul 7, 2025
e498a62
more script and doc update
Jul 8, 2025
5f6bc23
Merge remote-tracking branch 'upstream/main' into pnpm-migration
Jul 8, 2025
fa1df0f
split job steps
Jul 9, 2025
ea83a5b
re-gen for swaggers
Jul 9, 2025
71e6eb3
move dev deps ts-node and typescript to top-level package.json
Jul 10, 2025
e3385fa
Merge remote-tracking branch 'upstream/main' into pnpm-migration
Jul 10, 2025
4a88137
update lro tests to verify error.name for AbortError
Jul 10, 2025
ae1a36e
pnpm install
Jul 10, 2025
500e08a
Revert "move dev deps ts-node and typescript to top-level package.json"
Jul 10, 2025
5fb9396
Merge remote-tracking branch 'upstream/main' into pnpm-migration
Jul 10, 2025
86c2c5c
fix format
Jul 10, 2025
6aa71d6
update case
v-jiaodi Jul 18, 2025
bedbe61
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Jul 18, 2025
78d77cb
update
v-jiaodi Jul 18, 2025
b45d8b2
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Jul 23, 2025
2d3cb9b
update
v-jiaodi Jul 23, 2025
fd0e084
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Jul 28, 2025
ee82882
update
v-jiaodi Jul 28, 2025
2416145
update
v-jiaodi Jul 29, 2025
f893dae
Merge branch 'main' of https://github.com/Azure/autorest.typescript i…
v-jiaodi Jul 30, 2025
ae53c4f
Merge remote-tracking branch 'upstream/main' into pnpm-migration
Oct 3, 2025
ef47d3f
Merge remote-tracking branch 'upstream/main' into pnpm-migration
Oct 30, 2025
7a0e123
pnpm update
Oct 30, 2025
35d590b
approve autorest and puppeteer install builds
Oct 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ When upgrading TypeSpec dependencies only work on `packages/typespec-ts/` and `p
- Identify dependencies within the @typespec or @azure-tools npm-scopes under "dependencies", "devDependencies" and "peerDependencies" in package.json
- You should resolve the version in "next" tag for dependencies on `@typespec/http-specs`, `@typespec/spector`, `@azure-tools/azure-http-specs`, and `@typespec/spec-api`
- You should resolve the version in "latest" tag for the other dependencies
- Run "rush update" after editing the dependencies in package.json
- Run "pnpm install" after editing the dependencies in package.json
- TypeSpec dependencies means any dependencies starting with `@typespec/` or `@azure-tools/` as these are relevant to TypeSpec and Azure tools.
- Do not update dependency for @typespec/ts-http-runtime.
- For spector relevant dependencies, the latest version which is tagged with `next` on npm including `@typespec/http-specs`, `@typespec/spector`, `@azure-tools/azure-http-specs`, and `@typespec/spec-api`.
- For other dependencies, check the latest versions which is tagged with `latest` on npm and update them accordingly.
- After updating the versions, run `rush update` to ensure all dependencies are correctly installed and the lock files are updated.
- Do run `rush build` to build the entire monorepo to check if any building issues introduced by upgrading.
- Do run `rush format` to format the codebase.
- After updating the versions, run `pnpm install` to ensure all dependencies are correctly installed and the lock files are updated.
- Do run `pnpm build` to build the entire monorepo to check if any building issues introduced by upgrading.
- Do run `pnpm format` to format the codebase.
- Do run `npm run unit-test` under `packages/typespec-ts/` to validate our Unit Test and follow the below instructions to fix any test failures.
- Do run `npm run copy:typespec` to copy the files which integration test may use.
- Do run `npm run integration-test-ci:azure-modular` under `packages/typespec-ts/` to validate our Azure Modular Integration Test and follow the below instructions to fix any test failures. Please do not skip this test. This would take around 30 min.
Expand All @@ -89,7 +89,7 @@ When upgrading TypeSpec dependencies only work on `packages/typespec-ts/` and `p

## How to run and fix test failures in TypeSpec TypeScript emitter

Run `rush update` and `rush build` before running tests.
Run `pnpm install` and `pnpm build` before running tests.

The tests in the TypeSpec TypeScript emitter can be categorized into:

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ dist
.tshy-build
vitest.config.ts.timestamp*
.tshy
**/test/**/metadata.json
**/test/**/metadata.json
.turbo/
10 changes: 6 additions & 4 deletions .scripts/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ steps:
versionSpec: "20.x"
displayName: "Use Node 20"
- script: |
npm install -g @microsoft/rush
displayName: "Install Rush"
npm install -g pnpm
displayName: "Install Pnpm"
- script: |
node common/scripts/install-run-rush.js update
node common/scripts/install-run-rush.js build
pnpm install
displayName: "Install package dependencies"
- script: |
pnpm build
displayName: "Build"
10 changes: 5 additions & 5 deletions .scripts/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@ stages:
name: UpdateRLCCommonDevVersionInTypesSpecTs
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-ts
- script: |
export TAR_NAME=$(node ../../common/scripts/install-run-rush-pnpm.js pack -q)
export TAR_NAME=$(pnpm pack -q)
echo $TAR_NAME
echo "##vso[task.setvariable variable=TAR_NAME;isOutput=true;]$TAR_NAME"
name: PackAutorestTypescriptArtifacts
workingDirectory: $(Build.SourcesDirectory)/packages/autorest.typescript
- script: |
export TAR_NAME=$(node ../../common/scripts/install-run-rush-pnpm.js pack -q)
export TAR_NAME=$(pnpm pack -q)
echo $TAR_NAME
echo "##vso[task.setvariable variable=TAR_NAME;isOutput=true;]$TAR_NAME"
name: PackTypeSpecTSArtifacts
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-ts
- script: |
export TAR_NAME=$(node ../../common/scripts/install-run-rush-pnpm.js pack -q)
export TAR_NAME=$(pnpm pack -q)
echo $TAR_NAME
echo "##vso[task.setvariable variable=TAR_NAME;isOutput=true;]$TAR_NAME"
name: PackRLCCommonArtifacts
Expand Down Expand Up @@ -241,7 +241,7 @@ stages:
demands: ImageOverride -equals $(OSVmImage)
steps:
- template: build.yml
- script: node $(Build.SourcesDirectory)/common/scripts/install-run-rushx.js smoke-test
- script: npm run smoke-test
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-test
displayName: "Generate Code From TypeSpec"
- script: npm run check:tree
Expand All @@ -263,7 +263,7 @@ stages:
demands: ImageOverride -equals $(OSVmImage)
steps:
- template: build.yml
- script: node $(Build.SourcesDirectory)/common/scripts/install-run-rushx.js smoke-test:contoso && node $(Build.SourcesDirectory)/common/scripts/install-run-rushx.js smoke-test:todo
- script: npm run smoke-test:contoso && npm run smoke-test:todo
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-test
displayName: "Generate Contoso Code From TypeSpec"

Expand Down
3 changes: 0 additions & 3 deletions .scripts/nightly-prepare.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
steps:
- script: npm install -g @typespec/compiler@next
displayName: Install @typespec/compiler@next
- script: npx @azure-tools/typespec-bump-deps@latest pnpm-config.json --add-rush-overrides
workingDirectory: $(Build.SourcesDirectory)/common/config/rush
displayName: "Override global pnpm-config to dev"
- script: npx @azure-tools/typespec-bump-deps@latest package.json
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-ts
displayName: "Override typespec-ts package.json to dev"
Expand Down
4 changes: 2 additions & 2 deletions .scripts/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ stages:
- job: SmokeTest
steps:
- template: nightly-prepare.yml
- script: node $(Build.SourcesDirectory)/common/scripts/install-run-rushx.js smoke-test
- script: npm run smoke-test
workingDirectory: $(Build.SourcesDirectory)/packages/typespec-test
displayName: "Generate Code From TypeSpec"
displayName: "Generate Code From TypeSpec"
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ In order contribute to this project, You will need to install some prerequisite

- Git
- Any of the [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
- Rush 5.x
- Install / update Rush globally via `npm install -g @microsoft/rush`.
- Rush will automatically manage the specific version needed by this repo as long as you have any v5 version installed.
- If you're unable to install a global tool, you can instead call the wrapper script `node <repo root>/common/scripts/install-run-rush.js` any time the guide instructs you to run `rush`. The wrapper script will install a managed copy of Rush in a temporary directory for you.
- Pnpm 10.12.x
- Install / update Pnpm globally via `npm install -g pnpm`.
- [Autorest](https://www.npmjs.com/package/autorest), if you're planning contribute to the generator code from swagger either for high level client or for rest level client.
- [TypeSpec Compiler](https://www.npmjs.com/package/@typespec/compiler), if you're planning contribute to the generator code from TypeSpec.

Expand All @@ -61,6 +59,6 @@ If your test case is working fine as expected, now you are ready to create the P
Our generated SDKs take dependency on various packages which you can see in the generated package.json files. These will need to be upgraded from time to time to stay on the latest major version so that we get bug fixes automatically due to semver.

- Update the version of the dependency you are looking for in the methods `restLevelPackage` and/or `regularAutorestPackage` in the [`packageFileGenerator.ts`](https://github.com/Azure/autorest.typescript/blob/main/packages/autorest.typescript/src/generators/static/packageFileGenerator.ts) file.
- Run `rush rebuild && npm run generate-swaggers && npm run smoke-test` to update the generated files in the repo and run smoke tests before creating the PR.
- Run `pnpm build && npm run generate-swaggers && npm run smoke-test` to update the generated files in the repo and run smoke tests before creating the PR.

For example, see the [PR 1271](https://github.com/Azure/autorest.typescript/pull/1271) that updates the version of `prettier` that the generated SDKs depend on.
13 changes: 0 additions & 13 deletions common/config/rush/.npmrc

This file was deleted.

32 changes: 0 additions & 32 deletions common/config/rush/.pnpmfile.cjs

This file was deleted.

200 changes: 0 additions & 200 deletions common/config/rush/command-line.json

This file was deleted.

Loading
Loading