Brian Donovan

Results 80 comments of Brian Donovan

Looks like this is caused by the version of the `coffee-script2` parser we're using not supporting callable `import`s. It will probably require an update to our forked `coffee-script2`.

The instructions in the README for `import-move-codemod` don't work because they include `--printer prettier`, and the `--printer` option was removed in `@codemod/[email protected]`. I tried it with the current version without...

Can you provide some steps for reproducing the issue and the error output? Doesn't need to be too detailed.

Closing since, though this remains an issue, the cause of it is not in codemod.

I would vote for detecting string additions that actually were originally string interpolations. This can be done by looking at the unrewritten tokens for the node (decaffeinate-parser does that). I'm...

True… so you'd just have to be careful that you don't do it when two non-strings could be added, like `a + b + "c"`.

They are different. They take different approaches to the same problem.

In short, decaf maps the CoffeeScript program structure (AST) into a JavaScript program structure, then generates JavaScript based on that. On the other hand, decaffeinate uses the CoffeeScript program structure...

How are you using it right now? Via `@codemod/core` or `@codemod/cli`? Can you provide a little more detail?

Try @codemod/[email protected] (just published) like so: ```sh codemod --parser-plugins decorators-legacy … ```