Browse Source

fix(build): Avoid prettier stdout error (#33105)

Evan Purkhiser 2 years ago
parent
commit
b8fe860868
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/extract-ios-device-names.ts

+ 1 - 1
scripts/extract-ios-device-names.ts

@@ -74,7 +74,7 @@ const template = (contents: string) => {
 const formatOutput = async (unformatted: string) => {
   const config = await prettier.resolveConfig(outputPath);
   if (config) {
-    return prettier.format(unformatted, config);
+    return prettier.format(unformatted, {...config, parser: 'babel'});
   }
 
   return unformatted;