mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
000e8f4654
* feat: implement redesign * fix: make it build * feat: visual tweaks * feat(overlay): update styling, integration endpoint * feat: add fallback icons * Clean up tests (#9183) * Add `@astrojs/upgrade` package for automatic package upgrades (#8525) Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * [ci] format * fix: links with same path but different search params not prefetched (#9189) Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * fix: discord icon * chore: changeset --------- Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Spencer Whitehead <35475068+SpencerWhitehead7@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
53 lines
1.2 KiB
Markdown
53 lines
1.2 KiB
Markdown
# @astrojs/upgrade
|
|
|
|
A command-line tool for upgrading your Astro integrations and dependencies.
|
|
|
|
You can run this command in your terminal to upgrade your official Astro integrations at the same time you upgrade your version of Astro.
|
|
|
|
## Usage
|
|
|
|
`@astrojs/upgrade` should not be added as a dependency to your project, but run as a temporary executable whenever you want to upgrade using [`npx`](https://docs.npmjs.com/cli/v10/commands/npx) or [`dlx`](https://pnpm.io/cli/dlx).
|
|
|
|
**With NPM:**
|
|
|
|
```bash
|
|
npx @astrojs/upgrade
|
|
```
|
|
|
|
**With Yarn:**
|
|
|
|
```bash
|
|
yarn dlx @astrojs/upgrade
|
|
```
|
|
|
|
**With PNPM:**
|
|
|
|
```bash
|
|
pnpm dlx @astrojs/upgrade
|
|
```
|
|
|
|
## Options
|
|
|
|
### tag (optional)
|
|
|
|
It is possible to pass a specific `tag` to resolve packages against. If not included, `@astrojs/upgrade` looks for the `latest` tag.
|
|
|
|
For example, Astro often releases `beta` versions prior to an upcoming major release. Upgrade an existing Astro project and it's dependencies to the `beta` version using one of the following commands:
|
|
|
|
**With NPM:**
|
|
|
|
```bash
|
|
npx @astrojs/upgrade beta
|
|
```
|
|
|
|
**With Yarn:**
|
|
|
|
```bash
|
|
yarn dlx @astrojs/upgrade beta
|
|
```
|
|
|
|
**With PNPM:**
|
|
|
|
```bash
|
|
pnpm dlx @astrojs/upgrade beta
|
|
```
|