cloudflare / pages-action

MIT License
475 stars 99 forks source link

Added support for different package managers #125

Open albbus-stack opened 5 months ago

albbus-stack commented 5 months ago

I added a new packageManager option field that allows the developer to choose which package manager to use to run wrangler.

Currently I've added support for pnpm and bun using pnpm dlx and bunx respectively, the default is npx in any other case.

The motivation for adding this is avoiding npm to install the wrangler dependency if it's not present. Instead of using npm it will now use the specified package manager, maintaining consistency with the previous steps of the developers action.