Unverified Commit 06d0ba41 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Fix typos in @next/codemod CLI (#16042)

parent e8e59a17
...@@ -35,7 +35,7 @@ function checkGitStatus(force) { ...@@ -35,7 +35,7 @@ function checkGitStatus(force) {
if (force) { if (force) {
console.log(`WARNING: ${errorMessage}. Forcibly continuing.`) console.log(`WARNING: ${errorMessage}. Forcibly continuing.`)
} else { } else {
console.log('Thank you for using react-codemods!') console.log('Thank you for using @next/codemod!')
console.log( console.log(
chalk.yellow( chalk.yellow(
'\nBut before we continue, please stash or commit your git changes.' '\nBut before we continue, please stash or commit your git changes.'
...@@ -121,12 +121,12 @@ function expandFilePathsIfNeeded(filesBeforeExpansion) { ...@@ -121,12 +121,12 @@ function expandFilePathsIfNeeded(filesBeforeExpansion) {
function run() { function run() {
const cli = meow( const cli = meow(
{ {
description: 'Codemods for updating React APIs.', description: 'Codemods for updating Next.js apps.',
help: ` help: `
Usage Usage
$ npx @next/codeod <transform> <path> <...options> $ npx @next/codemod <transform> <path> <...options>
transform One of the choices from https://github.com/reactjs/react-codemod transform One of the choices from https://github.com/vercel/next.js/tree/canary/packages/next-codemod
path Files or directory to transform. Can be a glob like src/**.test.js path Files or directory to transform. Can be a glob like pages/**.js
Options Options
--force Bypass Git safety checks and forcibly run codemods --force Bypass Git safety checks and forcibly run codemods
--dry Dry run (no changes are made to files) --dry Dry run (no changes are made to files)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment