Skip to content

💡 [Feature]: Refactor Upgrade project SPFx version feature to support multiple SPFx versions #517

@Adam-it

Description

@Adam-it

🎯 Aim of the feature

'Upgrade project SPFx version' - So what we could do is first we could run and check if there is any SPFx-generator installed and get its version. If there isn't then we could do what we do now which is providing guidance to upgrade to latest version of SPFx. But if we will find some SPFx-generator we could run the m365 spfx project upgrade with the --toVersion option and specify the version we found in the globally installed SPFx-generator.

Since the PR #621 introduces SPFx Compatibility Matrix with all SPFx versions I suggest that when someone would click on SPFx project upgrade we present the list of SPFx versions that are higher (later) than the version of SPFx in the current project and allow the user to pick any version of SPFx and run upgrade to it.
If someone would just click enter without selecting any version of SPFx from the list we would run upgrade version to latest version of SPFx.

📷 Images (if possible) with expected result

No response

🤔 Additional remarks or comments

No response

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions