Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli,runner): support for exported parser and include cjs/esm-specific extensions #1331

Merged
merged 5 commits into from
Sep 25, 2024

Conversation

r4zendev
Copy link
Contributor

  • Adds support for export const parser = and module.exports.parser =
  • Adds .mts, .mjs, .cts, .cjs extensions to the default included patterns when running a javascript-based codemod.

@r4zendev r4zendev self-assigned this Sep 24, 2024
Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
codemod ⬜️ Ignored (Inspect) Visit Preview Sep 25, 2024 11:26am

Copy link

pkg-pr-new bot commented Sep 24, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/codemod@1331

commit: c2e4299

apps/cli/package.json Outdated Show resolved Hide resolved
packages/runner/src/source-code.ts Outdated Show resolved Hide resolved
@r4zendev r4zendev force-pushed the mok/parser-discrepancy branch from 25ec3d1 to d3ecf36 Compare September 24, 2024 15:02
@r4zendev r4zendev force-pushed the mok/parser-discrepancy branch from d3ecf36 to c2e4299 Compare September 25, 2024 11:25
@r4zendev r4zendev merged commit b677d74 into main Sep 25, 2024
10 of 11 checks passed
@r4zendev r4zendev deleted the mok/parser-discrepancy branch September 25, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants