Skip to content

Commit

Permalink
feat: warn about ignoring unpackaged (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored May 2, 2024
1 parent b219151 commit f81576f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/resolve/forceIgnore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export class ForceIgnore {
'Your .forceignore file incorrectly uses the backslash ("\\") as a folder separator; it should use the slash ("/") instead. The ignore rules will not work as expected until you fix this.'
);
}
if (contents.includes('**/unpackaged/**')) {
void Lifecycle.getInstance().emitWarning(
'Your .forceignore file contains the "**/unpackaged/**" rule. This will cause all files to be ignored during a retrieve.'
);
}
// add the default ignore paths, and then parse the .forceignore file
this.parser = ignore().add(`${this.DEFAULT_IGNORE.join('\n')}\n${contents}`);

Expand Down

0 comments on commit f81576f

Please sign in to comment.