Skip to content

fix: drop only-allow preinstall from the published package#464

Merged
B4nan merged 1 commit into
masterfrom
fix/drop-published-only-allow-preinstall
May 29, 2026
Merged

fix: drop only-allow preinstall from the published package#464
B4nan merged 1 commit into
masterfrom
fix/drop-published-only-allow-preinstall

Conversation

@B4nan
Copy link
Copy Markdown
Member

@B4nan B4nan commented May 29, 2026

preinstall: npx only-allow pnpm in impit-node/package.json is a contributor guard, but it's published in the impit package, so it runs on every consumer install. It forces a network npx only-allow fetch during install, which breaks downstream installs whenever that fetch flakes (corrupted npm cache / ENOENT) — e.g. it intermittently fails yarn install in apify/crawlee CI.

impit ships prebuilt native binaries (optionalDependencies: impit-*), so consumers need no install/build scripts. Removing the published preinstall fixes it for all downstreams.

If the pnpm guard is still wanted for local development, it belongs at the (non-published) repo root rather than inside the published impit-node package.

`preinstall: npx only-allow pnpm` is a contributor guard, but it ships
in the published `impit` package and therefore runs on every consumer
install. It forces a network `npx only-allow` fetch during install,
which breaks downstream installs when that fetch flakes (corrupted npm
cache / ENOENT) — e.g. it fails `yarn install` in dependents. impit
ships prebuilt native binaries, so consumers need no install/build
scripts at all.
@B4nan B4nan added the adhoc Ad-hoc unplanned task added during the sprint. label May 29, 2026
@github-actions github-actions Bot added this to the 141st sprint - Tooling team milestone May 29, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label May 29, 2026
@B4nan B4nan requested a review from barjin May 29, 2026 10:28
@B4nan
Copy link
Copy Markdown
Member Author

B4nan commented May 29, 2026

@barjin let's ship a new patch version with this, it breaks usage with other package managers downstream

@B4nan B4nan merged commit 0304d1f into master May 29, 2026
33 checks passed
@B4nan B4nan deleted the fix/drop-published-only-allow-preinstall branch May 29, 2026 10:37
@barjin
Copy link
Copy Markdown
Member

barjin commented May 29, 2026

Release is running here

B4nan added a commit to apify/crawlee that referenced this pull request May 29, 2026
impit 0.14.1 removes the `preinstall: npx only-allow pnpm` that shipped
in the published package and intermittently broke `yarn install` in CI
(apify/impit#464).

impit + its platform binaries (`impit-*`) are added to
`npmPreapprovedPackages` so the freshly-published 0.14.1 isn't held back
by the 24h `npmMinimalAgeGate` — consistent with the other first-party
packages (`apify`, `crawlee`, `got-scraping`) already on that list.
camoufox-js's impit `0.13.1` is untouched (it has no preinstall).

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants