Skip to content

Commit f2acaf0

Browse files
authored
Adjust npm package size budget (#176)
## What changed - raise the compressed npm package guard from 760,000 to 770,000 bytes - raise the unpacked guard from 4,000,000 to 4,050,000 bytes - keep the assertion test synchronized with those bounded limits ## Why The intentional AWS lifecycle protection implementation in #175 produces a 764,403-byte archive, 4,403 bytes above the previous compressed guard. The archive still has 614 entries, remains below the existing entry limit, has no unexpected paths, and its unpacked size remains below 4 MB. The npm-package job therefore failed at the size assertion after a successful prepack build. ## Validation - `npm pack --json` — 764,403 compressed bytes, 3,966,565 unpacked bytes, 614 entries - package metadata passes the new 770,000 / 4,050,000 byte bounds - `npm test -- --run tests/npm-package.test.ts` — 4 passed - `actionlint .github/workflows/ci.yml .github/workflows/aws-integration.yml` - `git diff --check` ## Scope This PR contains only the package size budget and its assertion. It does not alter runtime behavior.
1 parent 6f657ae commit f2acaf0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,8 @@ jobs:
716716
)"
717717
jq --exit-status '
718718
.entryCount <= 615 and
719-
.size < 760000 and
720-
.unpackedSize < 4000000 and
719+
.size < 770000 and
720+
.unpackedSize < 4050000 and
721721
([.files[].path] | index("dist/cli.js") != null) and
722722
([.files[].path] | index("NOTICE") != null) and
723723
([.files[].path] |

tests/npm-package.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ describe("npm CLI distribution", () => {
6161
) as { scripts?: Record<string, string> };
6262

6363
expect(workflow).toContain(".entryCount <= 615");
64-
expect(workflow).toContain(".size < 760000");
65-
expect(workflow).toContain(".unpackedSize < 4000000");
64+
expect(workflow).toContain(".size < 770000");
65+
expect(workflow).toContain(".unpackedSize < 4050000");
6666
expect(workflow).toContain(
6767
'index("dist/portable/backup-restore-proof.js") != null',
6868
);

0 commit comments

Comments
 (0)