diff --git a/packages/cli/src/main.ts b/packages/cli/src/main.ts index 21eeb97d7..ac709c108 100644 --- a/packages/cli/src/main.ts +++ b/packages/cli/src/main.ts @@ -1,3 +1,4 @@ +import path from 'path'; import semver from 'semver'; import chalk from 'chalk'; import path from 'path'; @@ -215,9 +216,10 @@ Make sure the package name ${pkgName} has been spelled correctly and exists befo ); for (const transform of transforms) { - console.log(chalk.green('Running transform:'), transform); + const resolvedTransformPath = path.resolve(transform); + console.log(chalk.green('Running transform:'), resolvedTransformPath); - await jscodeshift.run(transform, paths, { + await jscodeshift.run(resolvedTransformPath, paths, { verbose: 0, dry: flags.dry, print: true,