amplify-backend icon indicating copy to clipboard operation
amplify-backend copied to clipboard

feat: support bun

Open Ponjimon opened this issue 2 months ago • 1 comments

Problem

Running, for example, ampx info in a project that uses Bun as a package manager results in an error message:

{
    message: 'Package manager bun is not supported.',
    resolution: 'Use npm, yarn, or pnpm.'
}

Changes

Added necessary Bun lockfile reader and package manager controller and updated the code where the other package managers were mentioned and added Bun.

[!NOTE] Since npx was mentioned at the occurences in the code, I added its Bun pendant bunx where necessary. I'm not sure if this is correct and it should just run bun instead, please advise if I'm mistaken here.

Validation

Corresponding tests for the lockfile reader and package manager controller have been added

Checklist

  • [x] If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • [x] If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • [x] If this PR requires a docs update, I have linked to that docs PR above.
  • [x] If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Ponjimon avatar Sep 22 '25 20:09 Ponjimon