From 90e7c5b6126dd5241731dfd140f9457725a8c19e Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Fri, 2 Aug 2024 10:31:51 +0700 Subject: [PATCH] fix(web): patch up worker build to provide artifacts for its tests --- common/predictive-text/src/node/tsconfig.json | 3 +-- common/web/lm-worker/build.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/predictive-text/src/node/tsconfig.json b/common/predictive-text/src/node/tsconfig.json index 3f847a1c30d..f95364c4175 100644 --- a/common/predictive-text/src/node/tsconfig.json +++ b/common/predictive-text/src/node/tsconfig.json @@ -14,7 +14,6 @@ "*.ts" ], "references": [ - { "path": "../tsconfig.json" }, - { "path": "../../../web/lm-worker" } + { "path": "../tsconfig.json" } ] } \ No newline at end of file diff --git a/common/web/lm-worker/build.sh b/common/web/lm-worker/build.sh index 5a07a49911f..22ffa9208c5 100755 --- a/common/web/lm-worker/build.sh +++ b/common/web/lm-worker/build.sh @@ -55,6 +55,9 @@ function do_build() { # Declaration bundling. tsc --emitDeclarationOnly --outFile $INTERMEDIATE/worker-main.d.ts + # Some automated tests currently rely upon the individual output files. + tsc + mkdir -p $LIB