UNPKG

json-schema-to-joi

Version:

Converts JSON schema to Joi typescript code

68 lines (67 loc) 1.89 kB
{ "name": "json-schema-to-joi", "version": "5.1.0", "description": "Converts JSON schema to Joi typescript code", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "json2joi": "dist/cli.js" }, "author": "Marshall Ma", "license": "MIT", "scripts": { "format": "tsfmt -r", "clean": "rm -rf dist build", "compile": "scripty", "build": "yarn test && yarn _copylib", "test": "scripty", "lint": "scripty", "_copylib": "mkdir -p dist && cp -R build/src/* dist/", "npm_publish": "scripty", "prepare": "yarn build", "doc": "typedoc && touch docs/.nojekyll" }, "devDependencies": { "@types/bunyan": "^1.8.5", "@types/chai": "^4.1.7", "@types/cli-color": "0.3.29", "@types/hapi__joi": "^16.0.1", "@types/joi": "14.3.3", "@types/json-schema": "^7.0.1", "@types/lodash": "^4.14.120", "@types/minimist": "1.2.0", "@types/mocha": "^5.2.5", "@types/mz": "0.0.32", "@types/node": "^10.12.18", "@types/prettier": "^1.18.3", "chai": "^4.2.0", "json-diff": "^0.5.3", "mocha": "^5.2.0", "openapi-types": "1.3.5", "scripty": "^1.9.0", "source-map-support": "^0.5.10", "tsc-watch": "4.0.0", "tslint": "^5.12.1", "tslint-consistent-codestyle": "^1.15.0", "tslint-eslint-rules": "^5.4.0", "tslint-no-unused-expression-chai": "^0.1.4", "tslint-sonarts": "^1.9.0", "tslint-strict-error-throw": "^1.0.1", "typedoc": "0.15.0", "typescript": "^3.2.4", "typescript-formatter": "^7.2.2" }, "dependencies": { "@apidevtools/json-schema-ref-parser": "9.0.1", "@hapi/joi": "^16.1.7", "bunyan": "1.8.12", "cli-color": "1.4.0", "joi": "^14.3.1", "lodash": "^4.17.11", "minimist": ">=1.2.3", "minimist-options": "^4.0.2", "mz": "2.7.0", "prettier": "^1.18.2", "stdin": "^0.0.1" } }