Exclude docs from package checksum computation
Summary: We don't need to re-publish plugin package when only docs are changed, so excluding "docs" from checksum computation Differential Revision: D29508239 fbshipit-source-id: dfae89432f68b784caf07ae24ba7711f76c649b4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
328ba9513c
commit
56f502af07
@@ -39,6 +39,11 @@ export default async function computePackageChecksum(
|
||||
hash.setEncoding('hex');
|
||||
const files = (await packlist({path: dir})).sort();
|
||||
for (const file of files) {
|
||||
const segments = file.split(path.sep);
|
||||
if (segments.length > 0 && segments[0] === 'docs') {
|
||||
continue;
|
||||
}
|
||||
|
||||
const filePath = path.resolve(dir, file);
|
||||
|
||||
if (filePath === fullChecksumFilePath) {
|
||||
|
||||
Reference in New Issue
Block a user