Skip to content

Conversation

v-jiaodi
Copy link
Member

@v-jiaodi v-jiaodi commented May 23, 2025

fixes #3410
Update the dependencies to pnpm style when azureSdkForJs is true for HLC/RLC and Modular.

@MaryGao MaryGao changed the title Remove rush dependency Update the pnpm-style dependencies when azureSdkForJS is true May 23, 2025
@MaryGao MaryGao changed the title Update the pnpm-style dependencies when azureSdkForJS is true Update the dependencies to pnpm style when azureSdkForJs is true May 23, 2025
@MaryGao MaryGao changed the title Update the dependencies to pnpm style when azureSdkForJs is true Update the dependency to pnpm style when azureSdkForJs is true May 23, 2025
@qiaozha qiaozha assigned qiaozha and MaryGao and unassigned qiaozha Jul 2, 2025
@MaryGao
Copy link
Member

MaryGao commented Aug 1, 2025

@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.

@jeremymeng
Copy link
Member

@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.

@MaryGao
Copy link
Member

MaryGao commented Aug 4, 2025

@jeremymeng Thanks for the clarification! What is the plan to switch to catalog or workspace versions? Any other follow-ups after pnpm migration?

@MaryGao
Copy link
Member

MaryGao commented Aug 22, 2025

@v-jiaodi Could you fix the ci issue for this pr? SDK repo have contributed this change: #3210.

@MaryGao
Copy link
Member

MaryGao commented Sep 24, 2025

@v-jiaodi
Copy link
Member Author

@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.

@v-jiaodi v-jiaodi marked this pull request as ready for review September 24, 2025 05:30
useLegacyLro?: boolean;
flavor?: PackageFlavor;
//TODO should remove this after finish the release tool test
shouldUsePnpmDep?: boolean;
Copy link
Member

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?

Copy link
Member Author

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",
Copy link
Member

@MaryGao MaryGao Sep 26, 2025

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.

Copy link
Member Author

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");
Copy link
Member

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?

Copy link
Member

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

Copy link
Member

@MaryGao MaryGao left a 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?

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.

Remove the shouldUsePnpmDep flag and update the dependency to pnpm style when azureSdkForJs is true
4 participants