Skip to content

Commit

Permalink
refactor: assert inner function export
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Jul 13, 2024
1 parent 82e9ef8 commit f3a3141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/helpers/scripts/ast_grep.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export function ast_grep() {
`exports._ = ${func_name};`,
);

// since we match the { export x as _ } pattern,
// we need to find the assignment expression from the root
tree
.root()
.findAll({
Expand Down

0 comments on commit f3a3141

Please sign in to comment.