diff --git a/lib/install/coffee.rb b/lib/install/coffee.rb index 37e88acbc..347b409a9 100644 --- a/lib/install/coffee.rb +++ b/lib/install/coffee.rb @@ -20,6 +20,6 @@ "#{Webpacker.config.source_entry_path}/hello_coffee.coffee" say "Installing all Coffeescript dependencies" -run "yarn add coffeescript@1.12.7 coffee-loader" +run "yarn add --dev coffeescript@1.12.7 coffee-loader" say "Webpacker now supports Coffeeescript 🎉", :green diff --git a/lib/install/elm.rb b/lib/install/elm.rb index 2cbfebc02..e61229347 100644 --- a/lib/install/elm.rb +++ b/lib/install/elm.rb @@ -21,8 +21,8 @@ "#{Webpacker.config.source_path}/Main.elm" say "Installing all Elm dependencies" -run "yarn add elm elm-webpack-loader" -run "yarn add --dev elm-hot-loader" +run "yarn add elm" +run "yarn add --dev elm-hot-loader elm-webpack-loader" run "yarn run elm package install -- --yes" say "Updating webpack paths to include .elm file extension" diff --git a/lib/install/erb.rb b/lib/install/erb.rb index d4fe34570..1ee7456ea 100644 --- a/lib/install/erb.rb +++ b/lib/install/erb.rb @@ -20,6 +20,6 @@ "#{Webpacker.config.source_entry_path}/hello_erb.js.erb" say "Installing all Erb dependencies" -run "yarn add rails-erb-loader" +run "yarn add --dev rails-erb-loader" say "Webpacker now supports Erb in JS 🎉", :green diff --git a/lib/install/typescript.rb b/lib/install/typescript.rb index c904120b3..5317ef419 100644 --- a/lib/install/typescript.rb +++ b/lib/install/typescript.rb @@ -41,6 +41,6 @@ "#{Webpacker.config.source_entry_path}/hello_typescript.ts" say "Installing all typescript dependencies" -run "yarn add typescript ts-loader #{additional_packages}" +run "yarn add --dev typescript ts-loader #{additional_packages}" say "Webpacker now supports typescript 🎉", :green diff --git a/lib/install/vue.rb b/lib/install/vue.rb index 2687e883d..288ebb763 100644 --- a/lib/install/vue.rb +++ b/lib/install/vue.rb @@ -24,6 +24,7 @@ "#{Webpacker.config.source_path}/app.vue" say "Installing all Vue dependencies" -run "yarn add vue vue-loader vue-template-compiler" +run "yarn add vue" +run "yarn add --dev vue-loader vue-template-compiler" say "Webpacker now supports Vue.js 🎉", :green