wp-deps
What is this?
Utility to update dependencies on Gutenberg to a specific release.
When should I use this?
When developing blocks and using @wordpress
scoped packages, the current versioning scheme does not make managing dependencies on Gutenberg very simple. Especially if you need to target a specific release of Gutenberg. See this discussion in the WordPress/gutenberg repo.
The @wordpress/scripts
does have command packages-update
, though it calls npm install
, not just adjust the version numbers. This project uses pnpm
and calling npm install
is not ideal.
Usage
npx wp-deps --target 15.1
Optionally the devDependencies
of a release can be included in the update as well. The versioning of development dependencies isn't typically as large of a issue when trying to target a specific release of Gutenberg, but it is made available if necessary for your situation.
npx wp-deps --target 15.1 -D
License
wp-deps
is free software, and is released under the terms of the GNU General Public License version 3. See LICENSE.md for complete license.