0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/packages/upgrade
renovate[bot] 49463c03e5
fix(deps): update dependency preferred-pm to v4 (#11428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-17 15:23:19 +08:00
..
src fix(upgrade): use preferred-pm instead of which-pm-runs (#11139) 2024-05-24 14:58:51 +02:00
test chore: import sorting for test folder and e2e folder (#10190) 2024-02-22 13:58:10 +00:00
CHANGELOG.md [ci] release (#11140) 2024-05-27 06:58:19 -04:00
package.json fix(deps): update dependency preferred-pm to v4 (#11428) 2024-07-17 15:23:19 +08:00
README.md feat: implement overlay main screen redesign (#9118) 2023-11-28 09:39:38 -05:00
tsconfig.json feat: implement overlay main screen redesign (#9118) 2023-11-28 09:39:38 -05:00
upgrade.mjs feat: implement overlay main screen redesign (#9118) 2023-11-28 09:39:38 -05:00

@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 or dlx.

With NPM:

npx @astrojs/upgrade

With Yarn:

yarn dlx @astrojs/upgrade

With PNPM:

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:

npx @astrojs/upgrade beta

With Yarn:

yarn dlx @astrojs/upgrade beta

With PNPM:

pnpm dlx @astrojs/upgrade beta