-
Notifications
You must be signed in to change notification settings - Fork 77
Update the dependency to pnpm style when azureSdkForJs
is true
#3210
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
base: main
Are you sure you want to change the base?
Conversation
azureSdkForJs
is true
azureSdkForJs
is trueazureSdkForJs
is true
@v-jiaodi Could you work with @wanlwanl to verify if the floating version dependencies could run successfully with pnpm commands? If yes, I think we don't need to upgrade emitter versions with @jeremymeng's migration pr. We could upgrade emitters after that separately. |
@MaryGao @v-jiaodi @wanlonghenry The first pnpm PR in js repo doesn't have the floating versions yet, just switching from rush to pnpm as mono repo tool. |
@jeremymeng Thanks for the clarification! What is the plan to switch to catalog or workspace versions? Any other follow-ups after pnpm migration? |
…nto remove-rush-dependency
…nto remove-rush-dependency
…nto remove-rush-dependency
…nto remove-rush-dependency
@jiaodi Could we focus on the dev part first https://github.com/Azure/azure-sdk-for-js/blob/f6e317aec3cc878925002e648712fd278ec2ea32/sdk/quota/arm-quota/package.json#L85-L99? |
The current status is just like this. |
useLegacyLro?: boolean; | ||
flavor?: PackageFlavor; | ||
//TODO should remove this after finish the release tool test | ||
shouldUsePnpmDep?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i remember automation has used this option, @skywing918 do we need any update there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldUsePnpmDep
is not used in automation.
"dependencies": { | ||
"@azure/core-client": "^1.9.3", | ||
"@azure/core-rest-pipeline": "^1.19.1", | ||
"@azure/core-client": "^1.9.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the version correctly? the same as rest diffs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an incorrect change. It has already been reverted.
"dev-tool run build-test && dev-tool run test:vitest --browser" | ||
); | ||
expect(packageFile.scripts).to.have.property("pack", "npm pack 2>&1"); | ||
expect(packageFile.scripts).to.have.property("pack", "pnpm pack 2>&1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we have this diff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to use pnpm pack
so that the workspace version and catalog version specifiers are replaced with real versions in the packaged package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't expect any diff in test files happening, coud you check if this is expected?
fixes #3410
Update the dependencies to pnpm style when
azureSdkForJs
is true for HLC/RLC and Modular.