Skip to content

Commit

Permalink
Add ignored filePath for hash
Browse files Browse the repository at this point in the history
  • Loading branch information
minizzang committed Nov 12, 2024
1 parent 6cf36d8 commit 89de24b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions api/script/utils/hash-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,15 @@ export class PackageManifest {
public static isIgnored(relativeFilePath: string): boolean {
const __MACOSX = "__MACOSX/";
const DS_STORE = ".DS_Store";

return startsWith(relativeFilePath, __MACOSX) || relativeFilePath === DS_STORE || endsWith(relativeFilePath, "/" + DS_STORE);
const METADATA_FILE_NAME = ".codepushrelease";

return (
startsWith(relativeFilePath, __MACOSX) ||
relativeFilePath === DS_STORE ||
endsWith(relativeFilePath, "/" + DS_STORE) ||
relativeFilePath === METADATA_FILE_NAME ||
endsWith(relativeFilePath, "/" + METADATA_FILE_NAME)
);
}
}

Expand Down

0 comments on commit 89de24b

Please sign in to comment.