We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ba883f commit 1cb6333Copy full SHA for 1cb6333
src/compatibility.ts
@@ -18,8 +18,9 @@ type TrackingFileVersion = 'plugin-source' | 'toolbelt' | 'none';
18
*/
19
export const getTrackingFileVersion = (org: Org, projectPath: string): TrackingFileVersion => {
20
const orgsDir = path.join(projectPath, '.sfdx', 'orgs');
21
+ const newFilesDir = path.join(orgsDir, org.getOrgId());
22
// has new tracking files based on orgId
- if (fs.existsSync(path.join(orgsDir, org.getOrgId()))) {
23
+ if (fs.existsSync(newFilesDir) && fs.readdirSync(newFilesDir).length > 0) {
24
return 'plugin-source';
25
}
26
const username = org.getUsername();
0 commit comments