rsnext/packages
Hannes Bornö 26110b07cc
Print command for current packet manager in @next/font warning (#46359)
The warning that tells you to uninstall `@next/font` always prints `npx`
as the command to run the codemod. This makes it look for the current
packet manager and print a more relevant command.

npm

![image](https://user-images.githubusercontent.com/25056922/221159311-daf6ac01-a3e9-4c09-8f86-159ea2ac178b.png)

Yarn version where `yarn dlx` command is available, otherwise `npx`

![image](https://user-images.githubusercontent.com/25056922/221159598-51cb5818-ba2b-4cd8-aaf9-4cc2ef874039.png)

pnpm

![image](https://user-images.githubusercontent.com/25056922/221167672-56425112-48b6-4c77-aafd-0b20134f0aee.png)


## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the
feature request has been accepted for implementation before opening a
PR.
- [ ] Related issues linked using `fixes #number`
- [ ]
[e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2023-02-24 11:40:18 -08:00
..
create-next-app v13.2.1 2023-02-23 17:56:27 -08:00
eslint-config-next v13.2.1 2023-02-23 17:56:27 -08:00
eslint-plugin-next v13.2.1 2023-02-23 17:56:27 -08:00
font v13.2.1 2023-02-23 17:56:27 -08:00
next Print command for current packet manager in @next/font warning (#46359) 2023-02-24 11:40:18 -08:00
next-bundle-analyzer v13.2.1 2023-02-23 17:56:27 -08:00
next-codemod v13.2.1 2023-02-23 17:56:27 -08:00
next-env v13.2.1 2023-02-23 17:56:27 -08:00
next-mdx v13.2.1 2023-02-23 17:56:27 -08:00
next-plugin-storybook v13.2.1 2023-02-23 17:56:27 -08:00
next-polyfill-module v13.2.1 2023-02-23 17:56:27 -08:00
next-polyfill-nomodule v13.2.1 2023-02-23 17:56:27 -08:00
next-swc v13.2.1 2023-02-23 17:56:27 -08:00
react-dev-overlay v13.2.1 2023-02-23 17:56:27 -08:00
react-refresh-utils v13.2.1 2023-02-23 17:56:27 -08:00