Skip to content

chore: remove unused patch-package postinstall - #472

Open
aelmanaa wants to merge 1 commit into
OffchainLabs:developfrom
aelmanaa:chore/drop-patch-package
Open

aelmanaa wants to merge 1 commit into
OffchainLabs:developfrom
aelmanaa:chore/drop-patch-package

Conversation

@aelmanaa

Copy link
Copy Markdown

Closes #471.

patch-package has had nothing to apply since the last patch was removed in 9ecaa64, but it's still a runtime dependency with a postinstall hook. That makes every consumer install 50 extra packages (including tmp@0.0.33) and run an install script.

  • Remove "postinstall": "patch-package" and the patch-package dependency.
  • yarn.lock: only removals (patch-package and its subtree), no upgrades.
  • audit-ci.jsonc: the tmp allowlist comment now names only hardhat>solc, which still uses it.

Checked locally:

  • yarn install --frozen-lockfile and yarn build (211 files compiled).
  • yarn audit:ci reports the same advisories as on develop (all @openzeppelin/* plus others not related to this change), so no new findings.
  • Consumer install of npm pack of this branch vs the published 3.2.0, in an empty project: 5 packages and no install script, vs 56 packages and postinstall: patch-package.

@aelmanaa

Copy link
Copy Markdown
Author

@yahgwai @TucksonDev small dependency cleanup, related to the audit-ci work in #462.

@CLAassistant

CLAassistant commented Oct 31, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@aelmanaa
aelmanaa force-pushed the chore/drop-patch-package branch from e929b81 to f913e01 Compare November 19, 2026 05:35
@aelmanaa

Copy link
Copy Markdown
Author

Rebased on develop and the CLA is signed. @gzeoneth @godzillaba could one of you review?

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.

Remove unused patch-package postinstall and dependency

2 participants