update-gatsby-dependencies v2.0.0-beta-3
update-gatsby-dependencies
A package that will primarily help a developer update gatsby dependencies to the latest stable version of gatsby dependencies
Usage
go to the directory where the package.json file is and run:
npx update-gatsby-dependenciesthis will output a string you can use to update your alpha packages to beta
npm i gatsby@latest ... other packages each with @latestdefaults that can be customized
Specifying a command
you can also specify an install command but the program defaults to npm i
npx update-gatsby-dependencies --yarn npx update-gatsby-dependencies -yinstalling dependencies
npx update-gatsby-dependencies --installor
npx update-gatsby-dependencies -iwill install the dependencies
You can specify to use yarn instead of npm
npx update-gatsby-dependencies --yarnwould look for all dependencies that have gatsby in the name and output a command like this:
yarn add gatsby@latest gatsby-awesome-pagination@latest gatsby-plugin-image@latestupdating a package.json file (for beta only)
you can also update the dependencies, peer dependencies and dev dependencies of a package by using the following command:
npx update-gatsby-dependencies --packagenpx update-gatsby-dependencies -pthis command looks for the specific version that matches a certain tag, the default tag is latest but here npm will not retrieve the most stable version but the latest created versions:
npm i gatsby@next gatsby-awesome-pagination@next gatsby-plugin-image@nextUsing custom tags
lastly, you can specify the version tag for every install at once if needed.
npx update-gatsby-dependencies --version applewould produce
npm i gatsby@apple gatsby-awesome-pagination@apple gatsby-plugin-image@appleHope this helps!
have fun updating to gatsby 4!
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago