In spfx project azuredevops pipeline add and spfx project github workflow add we generate workflows/pipelines that will always use gulp for building and packaging. This makes sense only for projects that have SPFx <= 1.21.x. For projects with newer SPFx version, so >= 1.22.x, we should use heft.
In this PR #6766, we already check the SPFx project version and set the right node version for that project. I suggest we extend this functionality even further and dynamically set to use gulp or heft based on the SPFx project version.
In spfx project azuredevops pipeline add and spfx project github workflow add we generate workflows/pipelines that will always use gulp for building and packaging. This makes sense only for projects that have SPFx <= 1.21.x. For projects with newer SPFx version, so >= 1.22.x, we should use
heft.In this PR #6766, we already check the SPFx project version and set the right node version for that project. I suggest we extend this functionality even further and dynamically set to use
gulporheftbased on the SPFx project version.