Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 8, 2024
1 parent b970f8f commit cd5025d
Show file tree
Hide file tree
Showing 5 changed files with 655 additions and 743 deletions.
47 changes: 24 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,48 +49,49 @@
"prepublishOnly": "yarn build",
"release": "yarn build && auto shipit",
"run": "tsx ts-json-schema-generator.ts",
"test": "vitest test/ --verbose",
"test:coverage": "yarn vitest test/ --collectCoverage=true",
"test:fast": "cross-env FAST_TEST=1 vitest test/ --verbose",
"test": "vitest run",
"test:coverage": "yarn vitest run --coverage",
"test:fast": "cross-env FAST_TEST=1 vitest run",
"test:update": "cross-env UPDATE_SCHEMA=true yarn test:fast",
"watch": "tsc -w"
},
"dependencies": {
"@types/json-schema": "^7.0.15",
"commander": "^12.1.0",
"glob": "^10.4.2",
"glob": "^11.0.0",
"json5": "^2.2.3",
"normalize-path": "^3.0.0",
"safe-stable-stringify": "^2.4.3",
"tslib": "^2.6.3",
"typescript": "^5.5.2"
"safe-stable-stringify": "^2.5.0",
"tslib": "^2.7.0",
"typescript": "^5.5.4"
},
"devDependencies": {
"@auto-it/conventional-commits": "^11.1.6",
"@auto-it/first-time-contributor": "^11.1.6",
"@babel/core": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@auto-it/conventional-commits": "^11.2.1",
"@auto-it/first-time-contributor": "^11.2.1",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-typescript": "^7.24.7",
"@eslint/js": "^9.6.0",
"@types/eslint": "^9.6.0",
"@eslint/js": "^9.10.0",
"@types/eslint": "^9.6.1",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.12",
"@types/node": "^22.0.0",
"@types/node": "^22.5.4",
"@types/normalize-path": "^3.0.2",
"ajv": "^8.16.0",
"@vitest/coverage-v8": "^2.0.5",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"auto": "^11.1.6",
"auto": "^11.2.1",
"chai": "^5.1.1",
"cross-env": "^7.0.3",
"eslint": "^9.6.0",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"prettier": "^3.3.2",
"tsx": "^4.16.0",
"typescript-eslint": "^7.14.1",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.3.3",
"tsx": "^4.19.0",
"typescript-eslint": "^8.4.0",
"vega": "^5.30.0",
"vega-lite": "^5.19.0",
"vitest": "^0.34.1"
"vega-lite": "^5.21.0",
"vitest": "^2.0.5"
},
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/AnnotationsReader/BasicAnnotationsReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class BasicAnnotationsReader implements AnnotationsReader {
private parseJson(value: string): any {
try {
return json5.parse(value);
} catch (e) {
} catch {
return undefined;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/AnnotationsReader/ExtendedAnnotationsReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class ExtendedAnnotationsReader extends BasicAnnotationsReader {
const text = (example.text ?? []).map((part) => part.text).join("");
try {
examples.push(json5.parse(text));
} catch (e) {
} catch {
// ignore examples which don't parse to valid JSON
// This could be improved to support a broader range of usages,
// such as if the example has a title (as explained in the tsdoc spec).
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"typeRoots": ["node_modules/@types"],
"outDir": "dist",
"incremental": true,
"importHelpers": true
"importHelpers": true,
"types": ["vitest/globals"]
},
"files": ["ts-json-schema-generator.ts", "index.ts"],
"include": ["src/**/*.ts", "factory/**/*.ts"],
Expand Down
Loading

0 comments on commit cd5025d

Please sign in to comment.