Skip to content

Commit

Permalink
fix: handle org:create's single tracking file
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Sep 15, 2021
1 parent c64ea4e commit 008793d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compatibility.ts
Expand Up @@ -24,8 +24,8 @@ export const getTrackingFileVersion = (org: Org, projectPath: string): TrackingF
const username = org.getUsername();
if (typeof username === 'string') {
if (
// has one of the old files
fs.existsSync(path.join(orgsDir, username, 'sourcePathInfos.json')) ||
// has both of the old files (org:create puts maxRevision.json in the username dir)
fs.existsSync(path.join(orgsDir, username, 'sourcePathInfos.json')) &&
fs.existsSync(path.join(orgsDir, username, 'maxRevision.json'))
) {
return 'toolbelt';
Expand Down Expand Up @@ -94,7 +94,7 @@ export const replaceRenamedCommands = (input: string): string => {

export const renames = new Map([
['force:source:status', 'force:source:beta:status'],
['force:source:status', 'force:source:beta:status'],
['force:source:push', 'force:source:beta:push'],
['force:source:pull', 'force:source:beta:pull'],
['force:source:tracking:reset', 'force:source:beta:tracking:reset'],
['force:source:tracking:clear', 'force:source:beta:tracking:clear'],
Expand Down

0 comments on commit 008793d

Please sign in to comment.