diff --git a/common/models/templates/package.json b/common/models/templates/package.json
index 0bec0fc88f..33f89cca70 100644
--- a/common/models/templates/package.json
+++ b/common/models/templates/package.json
@@ -21,9 +21,7 @@
"exports": {
".": "./build/obj/index.js",
"./lib": {
- "types": "./build/lib/index.d.ts",
- "import": "./build/lib/index.mjs",
- "require": "./build/lib/index.cjs"
+ "types": "./build/lib/index.d.ts"
},
"./obj/*.js": "./build/obj/*.js"
},
diff --git a/common/models/wordbreakers/package.json b/common/models/wordbreakers/package.json
index bd8d0157fb..7a03dc9e8f 100644
--- a/common/models/wordbreakers/package.json
+++ b/common/models/wordbreakers/package.json
@@ -19,8 +19,7 @@
"exports": {
".": "./build/obj/index.js",
"./lib": {
- "import": "./build/lib/index.mjs",
- "require": "./build/lib/index.cjs"
+ "types": "./build/lib/index.d.ts"
},
"./obj/*.js": "./build/obj/*.js"
},
diff --git a/common/predictive-text/testing/index.html b/common/predictive-text/testing/index.html
deleted file mode 100644
index 8a00094b70..0000000000
--- a/common/predictive-text/testing/index.html
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- LMLayer Testing
-
-
-
- Language-Modeling Layer module testing
- Designed as a baseline functionality test we can run against various platforms as a first-stage canary of sorts.
- A prototype for directly embedding a WebWorker's code within a "master" script.
- A prototype for two-stage compilation of a master/slave main-script/WebWorker pair.
- A prototype for sending code over to a WebWorker via a Blob URI reference.
-
-
diff --git a/common/predictive-text/testing/one-stage-embedded-webworker/.gitignore b/common/predictive-text/testing/one-stage-embedded-webworker/.gitignore
deleted file mode 100644
index df6361deda..0000000000
--- a/common/predictive-text/testing/one-stage-embedded-webworker/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-main.js
-main.js.map
\ No newline at end of file
diff --git a/common/predictive-text/testing/one-stage-embedded-webworker/build.sh b/common/predictive-text/testing/one-stage-embedded-webworker/build.sh
deleted file mode 100755
index f1f727b8c0..0000000000
--- a/common/predictive-text/testing/one-stage-embedded-webworker/build.sh
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/usr/bin/env bash
-#
-# Compiles the Language Modeling Layer for common use in predictive text and autocorrective applications.
-# Designed for optimal compatibility with the Keyman Suite.
-#
-
-## START STANDARD BUILD SCRIPT INCLUDE
-# adjust relative paths as necessary
-THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
-. "${THIS_SCRIPT%/*}/../../../../resources/build/build-utils.sh"
-. "$KEYMAN_ROOT/resources/shellHelperFunctions.sh"
-## END STANDARD BUILD SCRIPT INCLUDE
-
-display_usage ( ) {
- echo "build.sh [-clean]"
- echo
- echo " -clean to erase pre-existing build products before a re-build"
-}
-
-SOURCE="testing/one-stage-embedded-webworker"
-
-echo "Node.js + dependencies check"
-npm install --no-optional
-
-if [ $? -ne 0 ]; then
- builder_die "Build environment setup error detected! Please ensure Node.js is installed!"
-fi
-
-# A nice, extensible method for -clean operations. Add to this as necessary.
-clean ( ) {
- rm -rf "./*.js"
- if [ $? -ne 0 ]; then
- builder_die "Failed to erase the prior build."
- fi
-}
-
-# Process command-line arguments
-while [[ $# -gt 0 ]] ; do
- key="$1"
- case $key in
- -clean)
- clean
- ;;
- esac
- shift # past the processed argument
-done
-
-npm run tsc -- -p $SOURCE/tsconfig.json
-
-if [ $? -ne 0 ]; then
- builder_die "Compilation failed."
-fi
-
-echo "Typescript compilation successful."
\ No newline at end of file
diff --git a/common/predictive-text/testing/one-stage-embedded-webworker/index.html b/common/predictive-text/testing/one-stage-embedded-webworker/index.html
deleted file mode 100644
index 244f4aa283..0000000000
--- a/common/predictive-text/testing/one-stage-embedded-webworker/index.html
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Embedded WebWorker test
-
-
-
-
-
-
-
-
-
- LM Layer Testing - One-Stage Embedded WebWorkers
- This page serves as a prototype for embedding a WebWorker's code within its "master" script
- across the TypeScript transpilation boundary.
-
-
-
-
-
-
-
diff --git a/common/predictive-text/testing/one-stage-embedded-webworker/main.ts b/common/predictive-text/testing/one-stage-embedded-webworker/main.ts
deleted file mode 100644
index 5d15ae88b5..0000000000
--- a/common/predictive-text/testing/one-stage-embedded-webworker/main.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-// Useful for passing class constructors
-type Workable = {
- new (...args: any[]): T;
- // Requires a static implementation.
- onmessage(e: any): void;
-};
-
-class A {
- a(x: number, y: number):number {
- return x + y;
- }
-}
-
-var WorkerGlobals = {
- counter: 0,
- a: A
-}
-
-class WorkerCore {
- static WorkerGlobals = WorkerGlobals;
- //static counter: number;
-
- static onmessage(e: any) {
- WorkerGlobals.counter++;
-
- console.log("Message received from main page: ", e.data);
-
- // Forces TypeScript to interpret this line as plain JavaScript, as it uses a non-Worker definition.
- // @ts-ignore
- postMessage(WorkerGlobals.counter);
- }
-}
-
-function createWorkerFromClasses(globals: object, fn: Workable