diff --git a/lib/install/typescript.rb b/lib/install/typescript.rb index 8aa594562..3273165f3 100644 --- a/lib/install/typescript.rb +++ b/lib/install/typescript.rb @@ -17,7 +17,7 @@ say "Adding TypeScript preset to babel.config.js" insert_into_file Rails.root.join("babel.config.js").to_s, - ",\n ['@babel/preset-typescript', { 'allExtensions': true, 'isTSX': true }]", + ",\n ['@babel/preset-typescript', { allExtensions: true, isTSX: true }]", before: /\s*\].filter\(Boolean\),\n\s*plugins: \[/ say "Copying tsconfig.json to the Rails root directory for typescript"