wrapper for each transform to supply it with j and root, and always make sure root.toSource() is called at the end (inspired by Vue-codemod)
extract actual name from import (e.g. supply it with AttentionBox string and find both import {AttentionBox} and import {AttentionBox as SomethingElse}) to later find with it all the component element usages
find all jsx appearances of a specific tag (e.g. find all <AttentionBox jsx usages in a file)
get all import declerations of vibe core and vibe core/next
https://monday.monday.com/boards/3532714909/pulses/6958656022
This PR also includes:
j
androot
, and always make sureroot.toSource()
is called at the end (inspired by Vue-codemod)AttentionBox
string and find bothimport {AttentionBox}
andimport {AttentionBox as SomethingElse}
) to later find with it all the component element usages