Use when upgrading Go emitter package and TypeSpec packages in eng/emitter-package.json to their latest versions.
Upgrade packages in eng/emitter-package.json to their latest versions.
npm install -g npm-check-updates)npm install -g @azure-tools/typespec-client-generator-cli)Change the working directory to the folder at the repository root.
eng/Rename emitter-package.json to package.json so that ncu can process it.
Run ncu -u to upgrade all packages in package.json to their latest versions.
Verify that all versions in package.json are absolute (no ~ or ^ prefixes). If any version has a ~ or ^ prefix, remove the prefix so only the version number remains.
Rename package.json back to emitter-package.json.
Run tsp-client generate-lock-file to update emitter-package-lock.json.
Commit both emitter-package.json and emitter-package-lock.json. Do not commit node_modules or package.json.