Skip to content

Commit

Permalink
fixup! Feat(web-react): Add spirit-codemod package
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Mar 4, 2024
1 parent 166a604 commit 9abcc0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/codemods/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export default async function cli(args: string[]) {
.example('-e ts, tsx, js, jsx')
.option('--ignore-pattern', 'Ignore files or directories, default: **/node_modules/**')
.example('-i **/node_modules/**')
.option('--parser', 'Parser to use (babel, ts, tsx, flow), default: babel')
.example('--parser ts')
.option('--parser', 'Parser to use (babel, ts, tsx, flow), default: tsx')
.example('--parser babel')
.action(async ({ path: codePath, codemod, extensions, ignorePattern, parser }) => {
const defaultExtensions = 'ts,tsx,js,jsx';
const defaultIgnore = '**/node_modules/**';
const defaultParser = 'babel';
const defaultParser = 'tsx';

if (!codePath || !fs.existsSync(codePath)) {
errorMessage(codePath);
Expand Down

0 comments on commit 9abcc0a

Please sign in to comment.