Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! Feat(web-react): Add spirit-codemo…
Browse files Browse the repository at this point in the history
…d package
  • Loading branch information
pavelklibani committed Mar 5, 2024
1 parent ab52127 commit cd6a44c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions packages/codemods/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit cd6a44c

Please sign in to comment.