rsnext/packages/create-next-app/helpers
Colin McDonnell 57ce466502
Add --use-bun to create-next-app (#53467)
This adds support for `--use-bun` to `create-next-app` to use `bun
install` when bootstrapping a new project.

```
npx create-next-app --use-bun
```

As with Yarn and pnpm, it reads from `npm_config_user_agent` to
determine if the user ran `bunx create-next-app`. If so, it defaults to
using Bun.

```sh
bunx create-next-app
```

## For Contributors

### Improving Documentation

- [x] Run `pnpm prettier-fix`
- [x] `pnpm build && pnpm lint` 
- [x] Added test to
`test/integration/create-next-app/package-manager.test.ts`

---------
2023-08-03 18:00:38 -07:00
..
copy.ts refactor(cna): make create-next-app even smaller (#53241) 2023-07-28 17:21:58 +00:00
examples.ts Fix nested example setup with create-next-app (#45390) 2023-01-29 11:54:28 -08:00
get-pkg-manager.ts Add --use-bun to create-next-app (#53467) 2023-08-03 18:00:38 -07:00
git.ts [create-next-app]: respecting the user's init.defaultBranch git con… (#49960) 2023-05-20 23:53:58 +00:00
install.ts Add --use-bun to create-next-app (#53467) 2023-08-03 18:00:38 -07:00
is-folder-empty.ts refactor(cna): replace chalk with picocolors, glob with fast-glob@2.2.7 (#53146) 2023-07-26 18:16:13 +00:00
is-online.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
is-writeable.ts CNA: Add warning about permission (#14889) 2020-08-19 17:09:34 +00:00
make-dir.ts chore: cross-platform rm -rf script (#49529) 2023-05-10 01:14:37 +00:00
validate-pkg.ts Update to latest babel versions (#28174) 2021-08-17 09:18:08 +02:00