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

Switch to using typescript parser #118

Merged
merged 4 commits into from Jan 15, 2021
Merged

Switch to using typescript parser #118

merged 4 commits into from Jan 15, 2021

Conversation

dcyriller
Copy link
Member

An issue

It is described in #117

A fix

This codemod was using jscodeshift default parser: @babel/eslint-parser. But the parser doesn't support decorators and typescript out of the box.

So, this PR proposes to switch to using codemod-cli default parser: typescript (require('recast/parsers/typescript')).

Links

rwjblue/codemod-cli#38 explains how using codemod-cli default parser fixes this issue
This PR should also fix #65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throws when used on TS files with decorators
1 participant