Skip to content

http-client-java, copilot-instruction for "Update package for latest compiler" #7158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions packages/http-client-java/.github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
> **Scope**: These instructions apply **only** to the `packages/http-client-java` sub-project in this monorepo. Use them whenever Copilot generates code, tests, commit messages, or pull request descriptions for the emitter. If Copilot is used in other sub-projects, these rules do not apply unless stated otherwise.

---

# Update Package for Latest Dependencies

Steps:

1. Run `ncu -u` on "package.json" in root and in both "generator/http-client-generator-clientcore-test" and "generator/http-client-generator-test" folders.
2. Update `peerDependencies` in root "package.json", according to the versions in `devDependencies`.
3. Update `override` in the other 2 "package.json", according to the versions in root "package.json".
4. Save the files, and run `npm install` in root, so that "package-lock.json" would be updated.

Developer may need to run `Generate.ps1` in "generator/http-client-generator-clientcore-test" and "generator/http-client-generator-test" folders, to update the e2e spector tests.

# Update Package and Prepare for Minor/Patch Release

Steps:

1. Bump minor/patch version of `@typespec/http-client-java` in the 3 "package.json".
2. Save the file, and run `npm install` in root, so that "package-lock.json" would be updated.

The [publish to NPM](https://dev.azure.com/azure-sdk/internal/_build?definitionId=7294) would be automatically triggered, after the PR is merged.
Loading