Skip to content
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

Pin dependencies and add emitter-package-lock.json lockfile #26200

Merged
merged 4 commits into from
Jun 15, 2023

Conversation

MaryGao
Copy link
Member

@MaryGao MaryGao commented Jun 14, 2023

Pin dependencies and add emitter-package-lock.json lockfile

fixes #26197
fixes #26198

@MaryGao MaryGao marked this pull request as ready for review June 14, 2023 06:32
Copy link
Member

@mikeharder mikeharder left a comment

Choose a reason for hiding this comment

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

The changes to emitter-package.json look good to me.

Unfortunately, I don't think the emitter-package-lock.json will currently be used. The scripts only copy emitter-package.json, and also call npm install --no-lock-file which would ignore the lockfile even if it were copied.

https://github.com/Azure/azure-sdk-tools/blob/fe715495dcf0502d1aeb20039b007627e9bd4ccd/eng/common/scripts/TypeSpec-Project-Generate.ps1#L41-L56

So you can either omit the emitter-package-lock.json file for now, or add it but know it will be ignored until TypeSpecProject-Generate.ps1 is updated to respect the lockfile.

I will open an issue for TypeSpecProject-Generate.ps1 to respect the lockfile.

@mikeharder
Copy link
Member

Actually I would go ahead and merge the lockfile now. The lockfile will need to be added to all language repos before the script can be update to use the lockfile.

eng/emitter-package-lock.json Outdated Show resolved Hide resolved
eng/emitter-package.json Show resolved Hide resolved
@MaryGao MaryGao requested review from raych1 and mikeharder June 15, 2023 02:25
@MaryGao MaryGao merged commit c87fce5 into Azure:main Jun 15, 2023
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-js that referenced this pull request Oct 12, 2023
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.

Add lockfile for emitter-package.json Pin version of @azure-tools/typespec-ts in emitter-package.json
2 participants