mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 08:55:34 +00:00
Fixes #3199. Ensures that the model package compiler passes schema validation for kmp.json. Three problems were corrected: 1. `followKeyboardVersion` is a source-only property; it should not be in deployable kmp.json. 2. `copyLocation` should have been a number not a string (in XML everything is a string... but JSON has more control here) 3. `fileType` is a source-only property; it also should not be in deployable kmp.json. I have checked that the resulting files validate against the package kmp.json schema version 1.1.0 defined at https://github.com/keymanapp/api.keyman.com/blob/master/schemas/package/1.1.0/package.json. None of these fixes should impact the use of these packages in target apps. `followKeyboardVersion` and `fileType` are used only in the source at package development time, and `copyLocation` is unused (and should be eliminated from Keyman altogether in the future). |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| README.md | ||
| test-compile-model-with-pseudoclosure.ts | ||
| test-compile-model.ts | ||
| test-compile-trie.ts | ||
| test-default-apply-case.ts | ||
| test-default-search-term-to-key.ts | ||
| test-error-logger.ts | ||
| test-join-word-breaker.ts | ||
| test-model-definitions.ts | ||
| test-override-script-defaults.ts | ||
| test-package-compiler.ts | ||
| test-parse-wordlist.ts | ||
| test-punctuation.ts | ||
| tsconfig.json | ||
Lexical Model and Package Compiler
Build
npm run build
Test
npm test
NOTE: ensure you run npm run build before running the tests!