Skip to content

Conversation

@catalinaperalta
Copy link
Member

@catalinaperalta catalinaperalta commented Jan 31, 2026

Autorest is reaching eol, this pr removes the dependency from tsp-client.

}
} catch (err) {
Logger.error(
`An error occurred during convert command. Verify that you have autorest installed and accessible. Error: ${err}`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a catch all for any error and point out that this command relies on autorest

@catalinaperalta catalinaperalta marked this pull request as ready for review January 31, 2026 01:56
Copilot AI review requested due to automatic review settings January 31, 2026 01:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes autorest as a bundled dependency from tsp-client, as autorest is reaching end-of-life. The changes replace the previous approach of resolving autorest from node_modules with a simpler npx-based invocation.

Changes:

  • Removed autorest and related dependencies (@autorest/core, @autorest/openapi-to-typespec) from package.json and package-lock.json
  • Renamed nodeCommand to npxCommand in npm.ts to use npx instead of node for running autorest
  • Simplified the convert command implementation by removing dependency path resolution logic and using npx to invoke autorest directly

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/tsp-client/package.json Bumped version to 0.32.0 and removed autorest-related dependencies
tools/tsp-client/package-lock.json Removed autorest and all transitive dependencies from the lockfile
tools/tsp-client/src/npm.ts Renamed nodeCommand to npxCommand to invoke commands via npx
tools/tsp-client/src/commands.ts Simplified convert command to use npx autorest, removed dependency resolution logic
tools/tsp-client/CHANGELOG.md Added release notes for version 0.32.0
Files not reviewed (1)
  • tools/tsp-client/package-lock.json: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants