Skip to content
Vy logo
Guides

Using spor-codemods

A guide on what the spor-codemods package is, and how to use it.

About the package

spor-codemods is a package available through Spor that contains code modification scripts that can help automate the process of migrating Spor code to newer versions.

The package uses jscodeshift (https://github.com/facebook/jscodeshift) to transform your codebase.

To install the package in your project, run

pnpm add -D @vygruppen/spor-codemods

Usage

The easiest way to use the codemods is through the CLI. By running the command pnpm spor-codemod --help you will be provided with information on how to run the code modification scripts, in addition to what scripts that are available for use.