From fdebc68051be8cde9a37ffe5f437746a2e5c4711 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Thu, 16 Jul 2026 17:07:39 +0200 Subject: [PATCH] Bug 43091: Clean the OPAC Vue dist directory in js:clean js:clean predates the OPAC islands build (bug 26355) and only removes the intranet and Cypress dist directories, so stale chunks survive in koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/ across rebuilds. - add the OPAC Vue dist directory to js:clean Test plan: 1. yarn js:build, then apply this patch series and yarn js:clean 2. ls koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/ => empty, no stale staff-only chunks remain 3. yarn js:build => only islands.esm.js and a patron-self-renewal chunk are emitted Signed-off-by: Jonathan Druart Signed-off-by: Matt Blenkinsop Signed-off-by: Pedro Amorim --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a38ac4bbf5..7a45219d78 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "js:build:analyze": "rspack build --mode development --analyze", "js:watch": "rspack build --mode development --watch", "js:build:prod": "rspack build --mode production", - "js:clean": "rm -rf koha-tmpl/intranet-tmpl/prog/js/vue/dist/* t/cypress/plugins/dist/*", + "js:clean": "rm -rf koha-tmpl/intranet-tmpl/prog/js/vue/dist/* koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/* t/cypress/plugins/dist/*", "build": "yarn css:build && yarn js:build && yarn api:bundle", "build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle", "cypress": "cypress",