From 5ecd95bd2b2c1f84d0c69ce65eff82ce79f159cc Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 18 Dec 2023 15:02:29 +0700 Subject: [PATCH] fix(web): had missed tools/testing/recorder bundling --- web/src/tools/testing/recorder/build.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/web/src/tools/testing/recorder/build.sh b/web/src/tools/testing/recorder/build.sh index 6b5cb18342..95b0fcb31f 100755 --- a/web/src/tools/testing/recorder/build.sh +++ b/web/src/tools/testing/recorder/build.sh @@ -15,6 +15,8 @@ SUBPROJECT_NAME=tools/testing/recorder # This script runs from its own folder cd "$THIS_SCRIPT_PATH" +BUNDLE_CMD="node $KEYMAN_ROOT/common/web/es-bundling/build/common-bundle.mjs" + ################################ Main script ################################ builder_describe "Builds the Keyman Engine for Web's test-sequence recording tool" \ @@ -31,6 +33,15 @@ builder_describe_outputs \ builder_parse "$@" +do_build ( ) { + compile $SUBPROJECT_NAME + + # Base product - the main keyboard processor + $BUNDLE_CMD "${KEYMAN_ROOT}/web/build/$SUBPROJECT_NAME/obj/index.js" \ + --out "${KEYMAN_ROOT}/web/build/$SUBPROJECT_NAME/lib/index.mjs" \ + --format esm +} + builder_run_action configure verify_npm_setup builder_run_action clean rm -rf ../../../../build/$SUBPROJECT_NAME/ -builder_run_action build compile $SUBPROJECT_NAME \ No newline at end of file +builder_run_action build do_build \ No newline at end of file