Skip to content

Conversation

dtinth
Copy link
Contributor

@dtinth dtinth commented Jan 21, 2023

Whether to run pnpm dlx or pnpm exec should depend on whether to run the package from the registry or from local node_modules:

  • pnpm dlx will always download from the npm registry
  • pnpm exec will run the package from node_modules

(In contrary, npm’s npx will run the package from local node_modules if it exists, only install otherwise. This is not the behavior of pnpm dlx.)

So it should be something like this:

  • Use pnpm dlx to run create-playwright
  • Use pnpm exec to run playwright

@mxschmitt
Copy link
Member

nice! We should update tests/integration.spec.ts too I guess?

@pavelfeldman pavelfeldman merged commit 42dcdc9 into microsoft:main Jan 27, 2023
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