Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit 4ef8539

Browse files
feat(fetch): remove dependency on project directory for a scratch org fetch
This change will allow the usage of a scratch org on any directory, it will skip the source tracking as sfdx-project.json is not found
1 parent f523b9e commit 4ef8539

File tree

1 file changed

+0
-3
lines changed
  • packages/sfpowerscripts-cli/src/commands/pool

1 file changed

+0
-3
lines changed

packages/sfpowerscripts-cli/src/commands/pool/fetch.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export default class Fetch extends SfpowerscriptsCommand {
2727
public static description = messages.getMessage('commandDescription');
2828

2929
protected static requiresDevhubUsername = true;
30-
protected static requiresProject = true;
3130
public static enableJsonFlag = true;
3231

3332
public static examples = [
@@ -71,8 +70,6 @@ export default class Fetch extends SfpowerscriptsCommand {
7170
public async execute(): Promise<AnyJson> {
7271
const fetchStartTime: number = Date.now();
7372

74-
if (!fs.existsSync('sfdx-project.json'))
75-
throw new Error('This command must be run in the root directory of a SFDX project');
7673

7774
await this.hubOrg.refreshAuth();
7875
const hubConn = this.hubOrg.getConnection();

0 commit comments

Comments
 (0)