From cd6a44c3ffadf86e53ca50f1b662c955a66be205 Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Tue, 5 Mar 2024 13:27:10 +0100 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! Feat(web-react): Add spirit-codemod package --- .github/CODEOWNERS | 1 + packages/codemods/src/cli.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f48a5029de..b2a76d4203 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -10,3 +10,4 @@ /packages/web @literat @adamkudrna @crishpeen @pavelklibani @lmc-eu/spirit-design-system /packages/web-react @literat @pavelklibani @lmc-eu/spirit-design-system /packages/web-twig @literat @adamkudrna @crishpeen @pavelklibani @lmc-eu/spirit-design-system +/packages/codemods @literat @adamkudrna @crishpeen @pavelklibani @lmc-eu/spirit-design-system diff --git a/packages/codemods/src/cli.ts b/packages/codemods/src/cli.ts index 1f8b2cc684..5146304c1f 100644 --- a/packages/codemods/src/cli.ts +++ b/packages/codemods/src/cli.ts @@ -12,12 +12,12 @@ export default async function cli(args: string[]) { .option('-p, --path', 'Path to the code to be transformed') .example('-p ./') .option('-t, --transformation', 'Codemod transformation name to run') - .example('-c v2/web-react/codemodName') + .example('-t v2/web-react/codemodName') .option('-e, --extensions', 'Extensions to look for when transforming files, default: ts,tsx,js,jsx') .example('-e ts, tsx, js, jsx') - .option('--ignore', 'Ignore files or directories, default: **/node_modules/**') + .option('-i, --ignore', 'Ignore files or directories, default: **/node_modules/**') .example('-i **/node_modules/**') - .option('--parser', 'Parser to use (babel, ts, tsx, flow), default: tsx') + .option('-r, --parser', 'Parser to use (babel, ts, tsx, flow), default: tsx') .example('--parser babel') .action(async ({ path: codePath, transformation, extensions, ignore, parser }) => { const defaultExtensions = 'ts,tsx,js,jsx';