UNPKG

@spec2ts/jsonschema

Version:

Utility to convert JSON Schemas to Typescript using TypeScript native compiler

69 lines (68 loc) 2.02 kB
{ "name": "@spec2ts/jsonschema", "version": "3.0.5", "description": "Utility to convert JSON Schemas to Typescript using TypeScript native compiler", "author": "Touchify <dev@touchify.co>", "license": "MIT", "main": "index.js", "homepage": "https://github.com/touchifyapp/spec2ts/blob/master/packages/jsonschema#readme", "repository": { "type": "git", "url": "https://github.com/touchifyapp/spec2ts" }, "publishConfig": { "access": "public" }, "bin": { "jsonschema2ts": "./bin/jsonschema2ts.js" }, "files": [ "*.js", "*.d.ts", "bin/**/*.js", "cli/**/*.js", "cli/**/*.d.ts", "lib/**/*.js", "lib/**/*.d.ts" ], "scripts": { "build": "npm run clean && npm run lint && npm run build:ts", "build:ts": "tsc -p .", "test": "npm run clean && npm run lint && npm run test:jest", "test:jest": "jest -c ../../jest.config.js --rootDir .", "test:coverage": "npm run test -- -- --coverage", "lint": "npm run lint:ts", "lint:ts": "eslint '*.ts' '{bin,cli,lib}/**/*.ts'", "lint:fix": "npm run lint -- -- --fix", "clean": "npm run clean:ts", "clean:ts": "del '*.{js,d.ts}' '{bin,cli,lib}/**/*.{js,d.ts}'", "prepublishOnly": "npm test && npm run build" }, "dependencies": { "@apidevtools/json-schema-ref-parser": "^10.1.0", "@spec2ts/core": "^3.0.2", "typescript": "^5.0.0", "yargs": "^17.7.2" }, "devDependencies": { "@types/json-schema": "^7.0.12", "del-cli": "^5.1.0", "eslint": "^8.49.0", "jest": "^29.6.4" }, "keywords": [ "json", "schema", "spec", "typescript", "compile", "compiler", "ast", "transpile", "interface", "typing", "spec2ts", "share" ], "gitHead": "81f76779f541e0bc2ef8d7051a0121fff07916ae" }