UNPKG

2.77 kBJSONView Raw
1{
2 "name": "json-schema-to-typescript",
3 "version": "15.0.4",
4 "description": "compile json schema to typescript typings",
5 "main": "dist/src/index.js",
6 "bin": {
7 "json2ts": "dist/src/cli.js"
8 },
9 "typings": "dist/src/index.d.ts",
10 "engines": {
11 "node": ">=16.0.0"
12 },
13 "scripts": {
14 "build": "npm run lint && npm run clean && npm run build:browser && npm run build:server",
15 "build:browser": "browserify src/index.ts -s jstt -p tsify > dist/bundle.js",
16 "build:server": "tsc -d",
17 "clean": "shx rm -rf dist && mkdir dist",
18 "format": "prettier \"{src,test}/*.ts\" --write",
19 "format-check": "prettier \"{src,test}/*.ts\" --check",
20 "lint": "eslint src/*.ts test/*.ts",
21 "tdd": "concurrently -r -p '' -k 'npm run watch' 'npm run watch:test'",
22 "test": "npm run pre-test && ava --timeout=300s --verbose",
23 "stresstest": "seq 1 10 | xargs -I{} npm test",
24 "prepublishOnly": "npm test",
25 "pre-test": "npm run clean && npm run format-check && npm run build:server",
26 "watch": "tsc -w",
27 "watch:test": "ava -w"
28 },
29 "repository": {
30 "type": "git",
31 "url": "git+https://github.com/bcherny/json-schema-to-typescript.git"
32 },
33 "keywords": [
34 "json",
35 "schema",
36 "typescript",
37 "compile",
38 "transpile",
39 "api",
40 "interface",
41 "typing",
42 "share"
43 ],
44 "author": "Boris Cherny <boris@borischerny.com> (https://borischerny.com)",
45 "license": "MIT",
46 "bugs": {
47 "url": "https://github.com/bcherny/json-schema-to-typescript/issues"
48 },
49 "homepage": "https://github.com/bcherny/json-schema-to-typescript#readme",
50 "dependencies": {
51 "@apidevtools/json-schema-ref-parser": "^11.5.5",
52 "@types/json-schema": "^7.0.15",
53 "@types/lodash": "^4.17.7",
54 "is-glob": "^4.0.3",
55 "js-yaml": "^4.1.0",
56 "lodash": "^4.17.21",
57 "minimist": "^1.2.8",
58 "prettier": "^3.2.5",
59 "tinyglobby": "^0.2.9"
60 },
61 "devDependencies": {
62 "@types/cli-color": "^2.0.6",
63 "@types/is-glob": "^4.0.4",
64 "@types/js-yaml": "^4.0.9",
65 "@types/minimist": "^1.2.5",
66 "@types/node": "^20.12.7",
67 "@typescript-eslint/eslint-plugin": "^7.7.0",
68 "@typescript-eslint/parser": "^7.7.0",
69 "ava": "^6.1.2",
70 "browserify": "^17.0.0",
71 "browserify-shim": "^3.8.16",
72 "cli-color": "^2.0.4",
73 "concurrently": "^8.2.2",
74 "eslint": "^8.56.0",
75 "eslint-config-prettier": "^9.1.0",
76 "eslint-plugin-prettier": "^5.1.3",
77 "rimraf": "^5.0.5",
78 "shx": "^0.3.4",
79 "tsify": "^5.0.4",
80 "typescript": "^5.4.5"
81 },
82 "ava": {
83 "files": [
84 "./dist/test/test.js"
85 ],
86 "snapshotDir": "./test/__snapshots__"
87 },
88 "browserify": {
89 "transform": [
90 "browserify-shim"
91 ]
92 },
93 "browserify-shim": {
94 "prettier": "global:prettier"
95 }
96}