Skip to content

Commit

Permalink
Update typescript.rb (#2697)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 authored Aug 17, 2020
1 parent 2b17c3f commit 554aa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/typescript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 554aa2e

Please sign in to comment.