Skip to content

Commit 008793d

Browse files
committed
fix: handle org:create's single tracking file
1 parent c64ea4e commit 008793d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compatibility.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export const getTrackingFileVersion = (org: Org, projectPath: string): TrackingF
2424
const username = org.getUsername();
2525
if (typeof username === 'string') {
2626
if (
27-
// has one of the old files
28-
fs.existsSync(path.join(orgsDir, username, 'sourcePathInfos.json')) ||
27+
// has both of the old files (org:create puts maxRevision.json in the username dir)
28+
fs.existsSync(path.join(orgsDir, username, 'sourcePathInfos.json')) &&
2929
fs.existsSync(path.join(orgsDir, username, 'maxRevision.json'))
3030
) {
3131
return 'toolbelt';
@@ -94,7 +94,7 @@ export const replaceRenamedCommands = (input: string): string => {
9494

9595
export const renames = new Map([
9696
['force:source:status', 'force:source:beta:status'],
97-
['force:source:status', 'force:source:beta:status'],
97+
['force:source:push', 'force:source:beta:push'],
9898
['force:source:pull', 'force:source:beta:pull'],
9999
['force:source:tracking:reset', 'force:source:beta:tracking:reset'],
100100
['force:source:tracking:clear', 'force:source:beta:tracking:clear'],

0 commit comments

Comments
 (0)