From ca52ad63e4b279d56a1ea2101d728faa936cdcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Bol=C3=ADvar?= Date: Thu, 14 Nov 2024 15:05:01 +0100 Subject: [PATCH] Remove node_modules leaving only @vocdoni/sdk installed --- Rakefile | 4 ---- package.json | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index bf012913f..03f34b28d 100644 --- a/Rakefile +++ b/Rakefile @@ -116,7 +116,3 @@ namespace :decidim_surveys_patch do end end end - -Rake::Task["assets:precompile"].enhance do - FileUtils.remove_dir("node_modules", true) -end diff --git a/package.json b/package.json index 248d8b807..78194bfe2 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "extends @decidim/browserslist-config" ], "scripts": { + "heroku-postbuild": "mv package.json package.json.bkp && mv package-lock.json package-lock.json.bkp && npm i @vocdoni/sdk@^0.8.0 --no-save && mv package-lock.json.bkp package-lock.json && mv package.json.bkp package.json", "lint": "eslint -c .eslintrc.json --ext .js app/packs/src", "lint-fix": "eslint -c .eslintrc.json --ext .js app/packs/src --fix", "stylelint": "stylelint \"{decidim-census_sms/,decidim-dataviz/,decidim-ephemeral_participation/,decidim-stats/,decidim-valid_auth/,}app/packs/stylesheets/**/*.scss\"",