Bug 36674: (follow-up) Stop emitting Cypress API client source maps

- Use devtool: false to prevent emitting source maps for cypress.
- Add package script to clean built assets, artifacts.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Paul Derscheid 2025-11-04 13:37:49 +00:00 committed by Laura Escamilla
parent 1d6a562c10
commit 229ab91dcb
No known key found for this signature in database
GPG Key ID: B5DEB5FD2FCDA5D8
2 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,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/*",
"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",

View File

@ -166,6 +166,7 @@ module.exports = [
"api-client.cjs":
"./koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js",
},
devtool: false,
output: {
filename: "[name].js",
path: path.resolve(__dirname, "t/cypress/plugins/dist/"),