https://github.com/buildo/ts-codemod-scripts
collection of basic JS/React codemod scripts to prepare for TS on a codebase
https://github.com/buildo/ts-codemod-scripts
Last synced: about 1 month ago
JSON representation
collection of basic JS/React codemod scripts to prepare for TS on a codebase
- Host: GitHub
- URL: https://github.com/buildo/ts-codemod-scripts
- Owner: buildo
- Created: 2017-05-22T13:22:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T17:12:54.000Z (almost 8 years ago)
- Last Synced: 2025-01-21T03:41:34.204Z (3 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-codemods - ts-codemod-scripts - Collection of basic JS/React codemod scripts to prepare for TS on a codebase. (Typescript)
README
You'll need to `npm i -g jscodeshift` first.
Dry run a script as
```sh
jscodeshift -t path/to/codemod.js /path/to/project/src -d
```Run a script as
```sh
jscodeshift -t path/to/codemod.js /path/to/project/src
```