diff options
author | Max Schwenk <maschwenk@gmail.com> | 2018-03-13 13:56:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 13:56:16 -0700 |
commit | 3e032bf23b4f0cc376190607ba99291bdc860ab0 (patch) | |
tree | 2f4f81ba247f7d66bdf52ffb402d01b01ea4e35c | |
parent | f7e7fdc52c35f61eaf0c11dbeb0a267baa0acb82 (diff) | |
download | rails-3e032bf23b4f0cc376190607ba99291bdc860ab0.tar.gz rails-3e032bf23b4f0cc376190607ba99291bdc860ab0.tar.bz2 rails-3e032bf23b4f0cc376190607ba99291bdc860ab0.zip |
Raise an error when lockfile diff is generated
https://yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile
-rw-r--r-- | railties/lib/rails/tasks/yarn.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/yarn.rake b/railties/lib/rails/tasks/yarn.rake index 48da7ffc51..044c63087d 100644 --- a/railties/lib/rails/tasks/yarn.rake +++ b/railties/lib/rails/tasks/yarn.rake @@ -3,7 +3,7 @@ namespace :yarn do desc "Install all JavaScript dependencies as specified via Yarn" task :install do - system("./bin/yarn install --no-progress --production") + system("./bin/yarn install --no-progress --freeze-lockfile --production") end end |