From f72bf128b114e06e3e9815c99eb0e778d8eed516 Mon Sep 17 00:00:00 2001 From: Georg Ledermann Date: Mon, 20 Apr 2020 05:33:45 +0200 Subject: [PATCH] Webpacker: There is no yarn integrity check anymore Adopt changes from Webpacker 5.1.0 https://github.com/rails/webpacker/pull/2518 --- .github/workflows/push.yml | 2 +- config/environments/development.rb | 3 --- config/webpacker.yml | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7af69a172..5ec69fe29 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -65,7 +65,7 @@ jobs: ${{ runner.os }}-yarn- - name: Install Node modules - run: yarn install + run: yarn install --frozen-lockfile - name: Run Tests env: diff --git a/config/environments/development.rb b/config/environments/development.rb index 36b7ce22d..77a2bd794 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,9 +1,6 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - # Verifies that versions and hashed value of the package contents in the project's package.json - config.webpacker.check_yarn_integrity = true - # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. diff --git a/config/webpacker.yml b/config/webpacker.yml index d7e053586..51d2d8af2 100644 --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -6,7 +6,6 @@ default: &default public_root_path: public public_output_path: packs cache_path: tmp/cache/webpacker - check_yarn_integrity: false webpack_compile_output: false # Additional paths webpack should lookup modules @@ -52,9 +51,6 @@ development: <<: *default compile: true - # Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules - check_yarn_integrity: true - # Reference: https://webpack.js.org/configuration/dev-server/ dev_server: https: false