Skip to content

Commit

Permalink
install babel’s typescript presets as normal dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gopeter committed Apr 20, 2020
1 parent 7ea63a4 commit d2443d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/install/typescript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
"#{Webpacker.config.source_entry_path}/hello_typescript.ts"

say "Installing all typescript dependencies"
run "yarn add typescript #{additional_packages}"

say "Installing all typescript dev-dependencies"
run "yarn add @babel/preset-typescript babel-preset-typescript-vue -D"
run "yarn add typescript @babel/preset-typescript babel-preset-typescript-vue #{additional_packages}"

say "Webpacker now supports typescript 🎉", :green

0 comments on commit d2443d3

Please sign in to comment.