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

Commit

Permalink
feat(fetch): remove dependency on project directory for a scratch org…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
azlam-abdulsalam committed Dec 5, 2023
1 parent f523b9e commit 4ef8539
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/sfpowerscripts-cli/src/commands/pool/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default class Fetch extends SfpowerscriptsCommand {
public static description = messages.getMessage('commandDescription');

protected static requiresDevhubUsername = true;
protected static requiresProject = true;
public static enableJsonFlag = true;

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

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

await this.hubOrg.refreshAuth();
const hubConn = this.hubOrg.getConnection();
Expand Down

0 comments on commit 4ef8539

Please sign in to comment.