Priority
(Low) Something is a little off
Description
When using Teams Toolkit to extend tab with SPFx project it creates the SPFx project in a nested 'src' folder (it's a bit shame the Teams Toolkit scaffolding is different than the yo SharePoint generator but still 😉).

When running spfx project upgrade and spfx project doctor we get reports that with 'src' as the project name in the file title.
like
KInda funny 😁.
This is becasue in many places we get the name based on the path.basename(this.projectRootPath as string) like here
|
title: `Validate project ${path.basename(this.projectRootPath as string)}`, |
I think we could improve that and take the name from .yo-rc or package-solution.json for older projects.
Steps to reproduce
- Using Teams Toolkit VS Code create a new Tab project using an SPFx project
- run
spfx project doctor or upgrade in the src folder
Expected results
In the title of upgrade or validate report files I would expect the actual SPFx project name not the 'src' folder name
Actual results
we get 'src' 😉
Diagnostics
No response
CLI for Microsoft 365 version
7.1
nodejs version
18.17.1
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response
Priority
(Low) Something is a little off
Description
When using Teams Toolkit to extend tab with SPFx project it creates the SPFx project in a nested 'src' folder (it's a bit shame the Teams Toolkit scaffolding is different than the yo SharePoint generator but still 😉).
When running
spfx project upgradeandspfx project doctorwe get reports that with 'src' as the project name in the file title.like
KInda funny 😁.
This is becasue in many places we get the name based on the
path.basename(this.projectRootPath as string)like herecli-microsoft365/src/m365/spfx/commands/project/project-doctor.ts
Line 348 in 11c70fc
I think we could improve that and take the name from
.yo-rcorpackage-solution.jsonfor older projects.Steps to reproduce
spfx project doctororupgradein the src folderExpected results
In the title of upgrade or validate report files I would expect the actual SPFx project name not the 'src' folder name
Actual results
we get 'src' 😉
Diagnostics
No response
CLI for Microsoft 365 version
7.1
nodejs version
18.17.1
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response