wp-deps
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i wp-deps

Weekly Downloads

1

Version

0.2.1

License

GPL-2.0-or-later

Unpacked Size

157 kB

Total Files

9

Last publish

Collaborators

  • erikyo
  • bitmachina