amplify-backend
amplify-backend copied to clipboard
feat: support bun
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
npxwas mentioned at the occurences in the code, I added its Bun pendantbunxwhere necessary. I'm not sure if this is correct and it should just runbuninstead, 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-e2elabel set.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.