Skip to content

Commit cc6ca5e

Browse files
authored
fix: index: Error: You must pass a scope
1 parent 439ef85 commit cc6ca5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function index(
1111
options: Options
1212
): string | null | undefined | void {
1313
const ast = options.noRecastWorkaround
14-
? api.jscodeshift(fileInfo.source).get()
14+
? api.jscodeshift(fileInfo.source).get().value
1515
: recast.parse(fileInfo.source, {
1616
parser: require('recast/parsers/babel'),
1717
})

0 commit comments

Comments
 (0)