Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
06d0ba41
Unverified
Commit
06d0ba41
authored
Aug 10, 2020
by
Joe Haddad
Committed by
GitHub
Aug 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in @next/codemod CLI (#16042)
parent
e8e59a17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cli.ts
packages/next-codemod/bin/cli.ts
+5
-5
No files found.
packages/next-codemod/bin/cli.ts
View file @
06d0ba41
...
...
@@ -35,7 +35,7 @@ function checkGitStatus(force) {
if
(
force
)
{
console
.
log
(
`WARNING:
${
errorMessage
}
. Forcibly continuing.`
)
}
else
{
console
.
log
(
'Thank you for using
react-codemods
!'
)
console
.
log
(
'Thank you for using
@next/codemod
!'
)
console
.
log
(
chalk
.
yellow
(
'
\
nBut before we continue, please stash or commit your git changes.'
...
...
@@ -121,12 +121,12 @@ function expandFilePathsIfNeeded(filesBeforeExpansion) {
function
run
()
{
const
cli
=
meow
(
{
description
:
'Codemods for updating
React API
s.'
,
description
:
'Codemods for updating
Next.js app
s.'
,
help
:
`
Usage
$ npx @next/codeod <transform> <path> <...options>
transform One of the choices from https://github.com/
reactjs/react-codemod
path Files or directory to transform. Can be a glob like
src/**.test
.js
$ npx @next/code
m
od <transform> <path> <...options>
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
pages/**
.js
Options
--force Bypass Git safety checks and forcibly run codemods
--dry Dry run (no changes are made to files)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment