ember-angle-brackets-codemod
ember-angle-brackets-codemod copied to clipboard
Codemod to convert curly braces syntax to angle brackets syntax
Because v6 of execa is ESM only we need to update our scripts that are using it to also be ESM. This PR does that 👍
I tried to run this codemod on one of EmberMap's templates and I'm having trouble getting it to work. It's strange because I just used this on a different project...
We've been hitting errors when running 5.1.0 via npx: ``` > npx ember-angle-brackets-codemod --config config/angle-brackets-codemod.json Downloading Chromium r818858 - 132.4 Mb [====================] 100% 0.0s Processing 1 files... Spawning 1 workers......
When I run the codemod on a file the conversion to the angle brackets syntax works fine. But when I discard the changes and try to run the codemod again...
``` Downloading Chromium r686378 - 110.2 Mb [====================] 100% 0.0s (node:43991) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'entries' of undefined at __puppeteer_evaluation_script__:9:50 at ExecutionContext._evaluateInternal (/Users/runspired/.npm/_npx/43991/lib/node_modules/ember-angle-brackets-codemod/node_modules/puppeteer/lib/ExecutionContext.js:122:13) at processTicksAndRejections (internal/process/task_queues.js:95:5)...
Ex: Input ``` {{#each model.promoRedemption as |promoRedemption|}} {{promoRedemption.redeemedAt}} {{promoRedemption.request.id}} ``` Output ``` {{#each model.promoRedemption as |promoRedemption|}} ```
Bumps [tar](https://github.com/npm/node-tar) from 6.0.1 to 6.1.3. **This update includes security fixes.** Vulnerabilities fixed Sourced from The GitHub Security Advisory Database. Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization Impact...
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.32.0. Release notes Sourced from eslint's releases. v7.32.0 3c78a7b Chore: Adopt eslint-plugin/prefer-message-ids rule internally (#14841) (Bryan Mishkin) faecf56 Update: change reporting location for curly rule...
Bumps [release-it](https://github.com/release-it/release-it) from 14.6.1 to 14.10.1. Release notes Sourced from release-it's releases. Release 14.10.1 Update dependencies (e4030c7) Only trim end of stdout (75d0c2f) Release 14.10.0 Migrate to latest sinon (76af5d1)...
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.6.0. **This update includes a security fix.** Vulnerabilities fixed Sourced from The GitHub Security Advisory Database. Regular Expression Denial of Service (ReDOS) A Regular Expression...