Skip to content

Commit 613210c

Browse files
committed
fix(release): allow larger npm plugin artifacts
1 parent b034527 commit 613210c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎scripts/plugin-publication-artifact.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ const MAX_ARCHIVE_BYTES = 256 * 1024 * 1024;
3939
const MAX_EXPANDED_BYTES = 512 * 1024 * 1024;
4040
const MAX_MANIFEST_BYTES = 4 * 1024 * 1024;
4141
const MAX_PLUGIN_MANIFEST_BYTES = 2 * 1024 * 1024;
42-
const MAX_TAR_ENTRIES = 10_000;
42+
// Bundled SDKs can exceed 10k files; byte, path, and expansion caps remain authoritative.
43+
const MAX_TAR_ENTRIES = 20_000;
4344
const MAX_TAR_PATH_BYTES = 4 * 1024 * 1024;
4445
const MAX_TAR_TOTAL_FILE_BYTES = 512 * 1024 * 1024;
4546
export const CLAWHUB_PUBLICATION_TAR_LIMITS = Object.freeze({

‎test/scripts/plugin-publication-artifact.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,14 +1158,14 @@ describe("plugin publication artifact", () => {
11581158
createTarball([
11591159
{ path: "package/", type: "5" },
11601160
{ content: metaPackageJson(markerPath), path: "package/package.json" },
1161-
...Array.from({ length: 10_000 }, (_, index) => ({
1161+
...Array.from({ length: 20_000 }, (_, index) => ({
11621162
path: `package/file-${index.toString().padStart(5, "0")}`,
11631163
})),
11641164
]),
11651165
);
11661166

11671167
expect(() => createPluginPublicationArtifact(publicationParams(artifactDir))).toThrow(
1168-
/exceeds the 10000 entry limit/u,
1168+
/exceeds the 20000 entry limit/u,
11691169
);
11701170
});
11711171

0 commit comments

Comments
 (0)