Skip to content

Conversation

@joetannenbaum
Copy link
Contributor

Instead of adding another prompt option as described in #440, the user can now pass a flag to select another package manager, otherwise it defaults to npm.

Flags include:

  • --npm
  • --pnpm
  • --bun
  • --yarn

This still includes lockfile detection if no flag is passed and also deletes lockfiles that are not associated with the selected package manager to avoid warnings.

The installer also now updates any composer script that references a node command to reflect the correct command specific to the selected package manager.

@taylorotwell taylorotwell merged commit 7094e65 into master Oct 13, 2025
19 checks passed
@taylorotwell taylorotwell deleted the alternative-package-managers branch October 13, 2025 21:11
self::NPM => 'npx',
self::YARN => 'npx',
self::PNPM => 'pnpm dlx',
self::BUN => 'npx',

Choose a reason for hiding this comment

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

bunx is Bun's equivalent of npx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Opened a PR: #443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants