Skip to content

Conversation

hasparus
Copy link
Contributor

Description

I was just copying the yaml to another project and noticed that we have npx despite the fact that the project is using pnpm.

Using pnpm playwright and pnpx playwright actually makes it slower, but accessing Playwright's CLI directly is a small, but noticeable speedup.

This file is rarely read by a human and executed often on the CI, so I think we can take this trade-off and make it a bit uglier but faster to run.

time $1

npx playwright -h > /dev/null  0.53s user 0.18s system 92% cpu 0.768 total

./node_modules/.bin/playwright -h  0.34s user 0.08s system 106% cpu 0.395 total

Copy link

vercel bot commented Sep 16, 2025

@hasparus is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Sep 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
graphql-github-io Ready Ready Preview Comment Sep 16, 2025 2:47pm

@saihaj saihaj merged commit 4c55544 into graphql:source Sep 17, 2025
5 checks passed
@saihaj saihaj deleted the direct-playwright-cli branch September 17, 2025 11:55
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.

2 participants