You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/02/13 22:28:07 UTC

(superset) branch remove-translation-json updated: adding translation builds to frontend builds

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch remove-translation-json
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/remove-translation-json by this push:
     new bc2d983290 adding translation builds to frontend builds
bc2d983290 is described below

commit bc2d98329077e0f676d7fba393dc9dd697123494
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Tue Feb 13 15:27:59 2024 -0700

    adding translation builds to frontend builds
---
 superset-frontend/package.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/package.json b/superset-frontend/package.json
index a13ed0a27d..927c338725 100644
--- a/superset-frontend/package.json
+++ b/superset-frontend/package.json
@@ -38,9 +38,9 @@
   ],
   "scripts": {
     "_prettier": "prettier './({src,spec,cypress-base,plugins,packages,.storybook}/**/*{.js,.jsx,.ts,.tsx,.css,.less,.scss,.sass}|package.json)'",
-    "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --mode=production --color",
+    "build": "npm run build-translations && cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --mode=production --color",
     "build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --color",
-    "build-instrumented": "cross-env NODE_ENV=production BABEL_ENV=instrumented webpack --mode=production --color",
+    "build-instrumented": "npm run build-translations && cross-env NODE_ENV=production BABEL_ENV=instrumented webpack --mode=production --color",
     "build-storybook": "build-storybook",
     "build-translations": "../scripts/po2json.sh",
     "check-translation": "prettier --check ../superset/translations/**/LC_MESSAGES/*.json",