Skip to content

Commit 00f71a3

Browse files
authored
fix(parse-json): Fixed incompatibility with json-parse-better-errors 1.0.2 (#1303)
1 parent 66bdfa7 commit 00f71a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function getDefaultLocalizedName(
7878
}
7979

8080
try {
81-
messageData = parseJSON(messageContents, messageFile);
81+
messageData = parseJSON(String(messageContents), messageFile);
8282
} catch (error) {
8383
throw new UsageError(
8484
`Error parsing messages.json ${error}`);

0 commit comments

Comments
 (0)