diff --git a/rakelib/node_package.rake b/rakelib/node_package.rake index b6e2d7157..2f617a61e 100644 --- a/rakelib/node_package.rake +++ b/rakelib/node_package.rake @@ -7,7 +7,7 @@ namespace :node_package do task :build do puts "Building Node Package and running 'yalc publish'" - sh "yarn run build && yalc publish" + sh "yarn run build && yarn yalc publish" end end diff --git a/rakelib/shakapacker_examples.rake b/rakelib/shakapacker_examples.rake index c17f2f8e0..165bbfc0d 100644 --- a/rakelib/shakapacker_examples.rake +++ b/rakelib/shakapacker_examples.rake @@ -29,8 +29,7 @@ namespace :shakapacker_examples do # rubocop:disable Metrics/BlockLength task example_type.gen_task_name_short => example_type.clobber_task_name do puts "Running shakapacker_examples:#{example_type.gen_task_name_short}" mkdir_p(example_type.dir) - example_type.rails_options += "--skip-javascript" - sh_in_dir(examples_dir, "rails new #{example_type.name} #{example_type.rails_options}") + sh_in_dir(examples_dir, "rails new #{example_type.name} #{example_type.rails_options} --skip-javascript") sh_in_dir(example_type.dir, "touch .gitignore") sh_in_dir(example_type.dir, "echo \"gem 'react_on_rails', path: '#{relative_gem_root}'\" >> #{example_type.gemfile}") @@ -38,7 +37,7 @@ namespace :shakapacker_examples do # rubocop:disable Metrics/BlockLength bundle_install_in(example_type.dir) sh_in_dir(example_type.dir, "rake shakapacker:install") sh_in_dir(example_type.dir, example_type.generator_shell_commands) - sh_in_dir(example_type.dir, "yarn") + sh_in_dir(example_type.dir, "npm install") end end