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 <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Paul Derscheid 2026-07-16 17:07:39 +02:00 committed by Pedro Amorim
parent 8ebc1d0f2b
commit fdebc68051
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 1 additions and 1 deletions

View File

@ -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",