From a93bf75329229dc16f356b722d5bd790dd72a854 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..139424075 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "extends @decidim/browserslist-config" ], "scripts": { + "heroku-postbuild": "rm -rf node_modules && npm install @vocdoni/sdk --no-save", "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\"",