emitter-package-update
Automate bumping typespec-python version in emitter-package.json for the Azure SDK for Python repository. Use this skill when the user wants to update @azure-tools/typespec-python to the latest version, create a PR for the version bump, or manage emitter-package.json updates.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Automate bumping typespec-python version in emitter-package.json for the Azure SDK for Python repository. Use this skill when the user wants to update @azure-tools/typespec-python to the latest version, create a PR for the version bump, or manage emitter-package.json updates.
How to use
Sprawdź, czy masz zainstalowane wymagane narzędzia: npm-check-updates, tsp-client oraz GitHub CLI. Jeśli brakuje któregoś, zainstaluj go za pomocą npm install -g npm-check-updates, npm install -g @azure-tools/typespec-client-generator-cli lub pobierz GitHub CLI ze strony https://cli.github.com/.
Przygotuj repozytorium do pracy, resetując zmiany i synchronizując z główną gałęzią poleceniem git reset HEAD, git checkout ., git clean -fd, git checkout origin/main oraz git pull origin main.
Sprawdź dostępną wersję @azure-tools/typespec-python za pomocą npx npm-check-updates --packageFile eng/emitter-package.json i zanotuj numer wersji z wyników.
Utwórz nową gałąź do pracy, wykonując git checkout -b bump-typespec-python-{wersja}, gdzie {wersja} to numer, który znalazłeś w kroku 3.
Zastosuj aktualizację zależności poleceniem npx npm-check-updates --packageFile eng/emitter-package.json -u, które automatycznie podniesie wersję w pliku.
Wyrównaj wersje powiązanych pakietów @azure-tools/openai-typespec i @typespec/openapi3 z wersjami zdefiniowanymi w azure-rest-api-specs/package.json, aby zapewnić spójność między pakietami.