From aede4ead591a4c37600ab050eff8d439beb906a3 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Fri, 12 Apr 2024 23:07:50 -0400 Subject: [PATCH] chore: update schema generator --- package-lock.json | 16 ++++++++-------- packages/spec/package.json | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 07606b69..443f1336 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12245,9 +12245,9 @@ } }, "node_modules/ts-json-schema-generator": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/ts-json-schema-generator/-/ts-json-schema-generator-1.5.1.tgz", - "integrity": "sha512-apX5qG2+NA66j7b4AJm8q/DpdTeOsjfh7A3LpKsUiil0FepkNwtN28zYgjrsiiya2/OPhsr/PSjX5FUYg79rCg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-json-schema-generator/-/ts-json-schema-generator-2.0.0.tgz", + "integrity": "sha512-wYolt196ubY2psHIfMoBszX2Ass/xLoALZWxQs8Rk1Ri61/HW/ZhlbVEYRIvZBhZnHHQvMT+CIuril4NRPRnkQ==", "dependencies": { "@types/json-schema": "^7.0.15", "commander": "^12.0.0", @@ -12255,7 +12255,7 @@ "json5": "^2.2.3", "normalize-path": "^3.0.0", "safe-stable-stringify": "^2.4.3", - "typescript": "~5.4.2" + "typescript": "~5.4.5" }, "bin": { "ts-json-schema-generator": "bin/ts-json-schema-generator" @@ -12547,9 +12547,9 @@ "dev": true }, "node_modules/typescript": { - "version": "5.4.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz", - "integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -13749,7 +13749,7 @@ "@uwdata/mosaic-core": "^0.7.1", "@uwdata/mosaic-sql": "^0.7.0", "@uwdata/vgplot": "^0.7.1", - "ts-json-schema-generator": "^1.5.1" + "ts-json-schema-generator": "^2.0.0" } }, "packages/sql": { diff --git a/packages/spec/package.json b/packages/spec/package.json index fac075ce..98353136 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -25,7 +25,7 @@ "prebuild": "rimraf dist && mkdir dist", "build": "tsc && node ../../esbuild.js mosaic-spec && npm run schema", "lint": "eslint src test --ext .js", - "schema": "ts-json-schema-generator -f tsconfig.json -p src/spec/Spec.ts -t Spec --no-type-check --no-ref-encode > dist/mosaic-schema.json", + "schema": "ts-json-schema-generator -f tsconfig.json -p src/spec/Spec.ts -t Spec --no-type-check --no-ref-encode --functions hide > dist/mosaic-schema.json", "pretest": "tsc", "test": "mocha 'test/**/*-test.js' && tsc -p jsconfig.json", "prepublishOnly": "npm run test && npm run lint && npm run build" @@ -34,6 +34,6 @@ "@uwdata/mosaic-core": "^0.7.1", "@uwdata/mosaic-sql": "^0.7.0", "@uwdata/vgplot": "^0.7.1", - "ts-json-schema-generator": "^1.5.1" + "ts-json-schema-generator": "^2.0.0" } }