ts2json-schema
Version:
Build JSON schemas for your typescript types matching a pattern.
53 lines (52 loc) • 1.47 kB
JSON
{
"displayName": "Typescript JSON Schema Generator",
"name": "ts2json-schema",
"version": "1.4.0",
"description": "Build JSON schemas for your typescript types matching a pattern.",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git@github.com:newt10/ts2json-schema.git"
},
"bugs": {
"url": "https://github.com/newt10/ts2json-schema/issues"
},
"engines": {
"node": ">=10.17.0"
},
"main": "dist/index.js",
"bin": {
"ts2json-schema": "./bin/ts2json-schema.bin.js"
},
"scripts": {
"demo": "rimraf ./schema && node ./dist/index.js -Dv -p ./src/models -m .+Interface$",
"demo-vega": "rimraf ./schema && node ./dist/index.js -ADv -p ./src/models -m .+Interface$ -t ./tsconfig.json",
"lint": "eslint src/**.ts --max-warnings=0",
"build": "rimraf ./dist && tsc",
"prepublishOnly": "npm run lint && npm run build"
},
"keywords": [
"typescript to json schema",
"json schema",
"JSONSchema",
"pattern match"
],
"author": {
"name": "newt10"
},
"devDependencies": {
"@types/node": "^14.14.31",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"eslint": "^7.21.0",
"rimraf": "^3.0.2",
"ts-node": "^9.1.1",
"typescript": "^4.2.2"
},
"dependencies": {
"app-root-path": "^3.0.0",
"commander": "^8.0.0",
"ts-json-schema-generator": "^0.95.0",
"typescript-json-schema": "^0.50.1"
}
}