We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 986667a commit f95faf8Copy full SHA for f95faf8
packages/next-codemod/bin/upgrade.ts
@@ -6,6 +6,7 @@ import { compareVersions } from 'compare-versions'
6
import chalk from 'chalk'
7
import { availableCodemods } from '../lib/codemods'
8
import { getPkgManager, installPackages } from '../lib/handle-package'
9
+import { runTransform } from './transform'
10
11
type StandardVersionSpecifier = 'canary' | 'rc' | 'latest'
12
type CustomVersionSpecifier = string
@@ -358,11 +359,6 @@ async function suggestCodemods(
358
359
)
360
361
for (const codemod of codemods) {
- execSync(
362
- `npx --yes @next/codemod@latest ${codemod} ${process.cwd()} --force`,
363
- {
364
- stdio: 'inherit',
365
- }
366
- )
+ await runTransform(codemod, process.cwd(), { force: true })
367
}
368
0 commit comments