Skip to content

fix(packaging): guard packaged helper scripts#929

Open
ousamabenyounes wants to merge 1 commit into
mksglu:nextfrom
ousamabenyounes:fix/issue-889
Open

fix(packaging): guard packaged helper scripts#929
ousamabenyounes wants to merge 1 commit into
mksglu:nextfrom
ousamabenyounes:fix/issue-889

Conversation

@ousamabenyounes

Copy link
Copy Markdown
Collaborator

What

Add a packaging guard for helper scripts required by install, heal, and plugin-cache integrity flows.

Fixes #889.

Why

The package drift assertion did not fail when helper scripts such as postinstall.mjs, heal helpers, or plugin-cache-integrity.mjs were missing from the packaged script set. That allowed broken tarballs to pass the existing guard.

Coverage added

  • Verifies required helper scripts are declared in package metadata.
  • Verifies required helper scripts are present in pack-list and tarball-style file lists.
  • Locks regression behavior in tests/scripts/asymmetric-drift-assert.test.ts.

Test plan

  • rtk test npx vitest run tests/scripts/asymmetric-drift-assert.test.ts
  • RED proof: reverted scripts/assert-asymmetric-drift.mjs, reran the same focused test, and observed the missing-helper-scripts assertion fail.
  • rtk test npm run typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant