@reduxjs/rtk-codemods

0.1.2 • Public • Published

RTK Codemods

A collection of codemods for updating legacy Redux Toolkit API usage patterns to modern patterns.

Usage

To run a specific codemod from this project, you would run the following:

npx @reduxjs/rtk-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

yarn global add @reduxjs/rtk-codemods
rtk-codemods <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Local Usage

node ./bin/cli.mjs <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Transforms

Contributing

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update Documentation

  • yarn update-docs

/@reduxjs/rtk-codemods/

    Package Sidebar

    Install

    npm i @reduxjs/rtk-codemods

    Weekly Downloads

    47

    Version

    0.1.2

    License

    none

    Unpacked Size

    22.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • eskimojo
    • acemarke
    • timdorr
    • gaearon
    • phryneas