npm.io
1.8.21 • Published 2d agoCLI

@reown/appkit-codemod

Licence
SEE LICENSE IN LICENSE.md
Version
1.8.21
Deps
1
Size
210 kB
Vulns
0
Weekly
0
Stars
5.4K

Reown AppKit Codemod

AppKit Codemod is a command-line tool designed to update dependencies across multiple package.json files in AppKit monorepo efficiently.

Codemod Features

The codemod tool allows you to update dependencies across multiple package.json files in your project. It supports:

  • Multiple Package Updates: Pass multiple package names to update them all at once.
  • Wildcard Patterns: Use patterns like @walletconnect/* to update all packages under a specific organization.
  • Version Constraint Preservation: Maintains version constraints like ">=4.x.x" when updating.

Usage

You can use the Codemod globally using npx/pnpx:

pnpx @reown/appkit-codemod <process> <args...>
Options
  • upgrade: Updates dependencies to their latest versions across the monorepo.
    • Arguments: One or more package names to upgrade, separated by spaces. Supports wildcards like @org/*.

Or you can use the predefined scripts for local usage in the root of the monorepo:

pnpm codemod:wc # This will upgrade all the @walletconnect/* dependencies
Example Commands

To update dependencies using the codemod:

npx appkit-codemod wagmi @wagmi/core @walletconnect/utils
npx appkit-codemod @walletconnect/*

Keywords