diff --git a/packages/create-redwood-app/scripts/tsToJS.js b/packages/create-redwood-app/scripts/tsToJS.js index c99cbd80551d..6ce9e5f4b6c0 100644 --- a/packages/create-redwood-app/scripts/tsToJS.js +++ b/packages/create-redwood-app/scripts/tsToJS.js @@ -67,7 +67,7 @@ for (const filePath of filePaths) { throw new Error(`Error: Couldn't transform ${filePath}`) } - const formattedCode = format(result.code, { + const formattedCode = await format(result.code, { ...prettierConfig, parser: 'babel', })