Skip to content

Commit c4bcabd

Browse files
author
David Sheldrick
committed
fix ast transformation
1 parent 9511dce commit c4bcabd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"typings": "dist/index.d.ts",
3131
"lint-staged": {
3232
"**/*.ts": [
33-
"prettier --list-different --no-semi --single-quote --trailing-comma es5"
33+
"prettier --list-different --no-semi --trailing-comma all"
3434
]
3535
},
3636
"devDependencies": {

src/getMetroTransformer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export function maybeTransformMetroResult(
7575
}
7676
const originalEnd = mapConsumer.originalPositionFor(node.loc.end)
7777
if (originalEnd.line) {
78-
node.loc.start.line = originalEnd.line
79-
node.loc.start.column = originalEnd.column
78+
node.loc.end.line = originalEnd.line
79+
node.loc.end.column = originalEnd.column
8080
}
8181
}
8282
})

0 commit comments

Comments
 (0)