Skip to content

Commit 7460a76

Browse files
authored
fix(framework): copy "base" pkg i18n assets to dist/prod (#12072)
Recently added i18n texts to the `base` package are not properly shipped - the i18n assets are missing from `@ui5/webcomponents-base/dist/prod/generated/assets/i18n` folder, causing issues like: > RollupError: Could not resolve "../assets/i18n/messagebundle_en.json" > from "node_modules/@ui5/webcomponents-base/dist/prod/generated/json-imports/i18n.js" With this change, the assets are copied and present in dist/prod.
1 parent 6aab670 commit 7460a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/base/package-scripts.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const scripts = {
5454
generateProd: {
5555
"default": "nps generateProd.remove-dev-mode generateProd.copy-prod",
5656
"remove-dev-mode": `node "${LIB}/remove-dev-mode/remove-dev-mode.mjs"`,
57-
"copy-prod": `copy-and-watch "dist/sap/**/*" dist/prod/sap/ && copy-and-watch "dist/thirdparty/preact/**/*.js" dist/prod/thirdparty/preact/`,
57+
"copy-prod": `copy-and-watch "dist/sap/**/*" dist/prod/sap/ && copy-and-watch "dist/thirdparty/preact/**/*.js" dist/prod/thirdparty/preact/ && copy-and-watch "dist/generated/assets/**/*.json" dist/prod/generated/assets/`,
5858
},
5959
generateAPI: {
6060
default: "nps generateAPI.generateCEM generateAPI.validateCEM",

0 commit comments

Comments
 (0)