summaryrefslogtreecommitdiff
path: root/dev/build-libs.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-10 19:21:42 -0500
committerGitHub <noreply@github.com>2023-12-11 00:21:42 +0000
commit1ae752b9fefb3e64114ebb4cd28f1fa0db9137c6 (patch)
tree8c3f9ffab013b2178a089caedd503dc8c4ea5a2e /dev/build-libs.js
parente0c6cf23bae41667ed49a7345dd69780eb12df23 (diff)
Fix issues in build-libs (#354)
Diffstat (limited to 'dev/build-libs.js')
-rw-r--r--dev/build-libs.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/dev/build-libs.js b/dev/build-libs.js
index 5caabec7..c3994ab3 100644
--- a/dev/build-libs.js
+++ b/dev/build-libs.js
@@ -60,7 +60,11 @@ export async function buildLibs() {
const schemaDir = path.join(extDir, 'data/schemas/');
const schemaFileNames = fs.readdirSync(schemaDir);
const schemas = schemaFileNames.map((schemaFileName) => JSON.parse(fs.readFileSync(path.join(schemaDir, schemaFileName), {encoding: 'utf8'})));
- const ajv = new Ajv({schemas: schemas, code: {source: true, esm: true}});
+ const ajv = new Ajv({
+ schemas,
+ code: {source: true, esm: true},
+ allowUnionTypes: true
+ });
const moduleCode = standaloneCode(ajv);
// https://github.com/ajv-validator/ajv/issues/2209