payloadcms / payload

The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS.
https://payloadcms.com
MIT License
21k stars 1.26k forks source link

fix: add bun to create-payload-app #6932

Open Arctomachine opened 3 days ago

Arctomachine commented 3 days ago

Description

This adds support for bun package manager. Previously forcing bun by bunx --bun create-payload-app somehow corrupted project. Now it should use proper command when given flag --use-bun.

My changes only use existing flow. But there is still room for additional detection methods for all package managers like checking user agent.

Type of change

Checklist:

I didnt run tests. And didnt test manually. If you suggest how I can do it, I will run manual test. Although it should not break anything existing, it might not work for new changes.