Skip to content

fix: Remove postinstall script for playwright setup#5063

Merged
rschristian merged 1 commit intov10.xfrom
fix/test-postinstall
Mar 25, 2026
Merged

fix: Remove postinstall script for playwright setup#5063
rschristian merged 1 commit intov10.xfrom
fix/test-postinstall

Conversation

@rschristian
Copy link
Copy Markdown
Member

@rschristian rschristian commented Mar 24, 2026

Missed in #5060

postinstall scripts run after the dependency was installed, not just when installing deps in the repo. As such, this would've broken any npm install preact into a project that wasn't using playwright.

Caught by our ecosystem-ci yesterday and again today:

npm install
...
npm error code 127
npm error path /home/runner/work/ecosystem-ci/ecosystem-ci/workspace/preact-render-to-string/.yalc/preact
npm error command failed
npm error command sh -c playwright install --with-deps chromium
npm error sh: 1: playwright: not found

"dev:hooks": "microbundle watch --raw --no-generateTypes --format cjs --cwd hooks",
"dev:compat": "microbundle watch --raw --no-generateTypes --format cjs --cwd compat --globals 'preact/hooks=preactHooks'",
"test": "npm-run-all build lint test:unit",
"test:install": "playwright install chromium",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There didn't seem to be an obvious need for --with-deps so I elected to match main's setup:

"test:install": "playwright install chromium",

@rschristian rschristian requested review from JoviDeCroock and marvinhagemeister and removed request for marvinhagemeister March 24, 2026 21:14
@rschristian
Copy link
Copy Markdown
Member Author

^ Dunno what I did to request reviews & immediately un-request Marvin, wasn't intentional. Sorry for the pings!

@rschristian rschristian merged commit c859700 into v10.x Mar 25, 2026
6 checks passed
@rschristian rschristian deleted the fix/test-postinstall branch March 25, 2026 14:26
@JoviDeCroock JoviDeCroock mentioned this pull request Apr 3, 2026
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.

3 participants