UNPKG

@typespec/json-schema

Version:

TypeSpec library for emitting TypeSpec to JSON Schema and converting JSON Schema to TypeSpec

78 lines 2.44 kB
{ "name": "@typespec/json-schema", "version": "1.0.0-rc.0", "author": "Microsoft Corporation", "description": "TypeSpec library for emitting TypeSpec to JSON Schema and converting JSON Schema to TypeSpec", "homepage": "https://github.com/microsoft/typespec", "readme": "https://github.com/microsoft/typespec/blob/main/README.md", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/microsoft/typespec.git" }, "bugs": { "url": "https://github.com/microsoft/typespec/issues" }, "keywords": [ "TypeSpec", "json schema" ], "type": "module", "main": "dist/src/index.js", "exports": { ".": { "typespec": "./lib/main.tsp", "types": "./dist/src/index.d.ts", "default": "./dist/src/index.js" }, "./testing": { "types": "./dist/src/testing/index.d.ts", "default": "./dist/src/testing/index.js" } }, "tspMain": "lib/main.tsp", "engines": { "node": ">=20.0.0" }, "files": [ "lib/*.tsp", "dist/**", "!dist/test/**" ], "peerDependencies": { "@typespec/compiler": "^1.0.0-rc.0" }, "devDependencies": { "@types/node": "~22.13.11", "@vitest/coverage-v8": "^3.0.9", "@vitest/ui": "^3.0.9", "ajv": "~8.17.1", "ajv-formats": "~3.0.1", "c8": "^10.1.3", "rimraf": "~6.0.1", "typescript": "~5.8.2", "vitest": "^3.0.9", "@typespec/compiler": "^1.0.0-rc.0", "@typespec/internal-build-utils": "^0.68.0", "@typespec/library-linter": "^0.68.0", "@typespec/tspd": "^0.46.0" }, "dependencies": { "yaml": "~2.7.0", "@typespec/asset-emitter": "^0.68.0" }, "scripts": { "clean": "rimraf ./dist ./temp", "build": "pnpm gen-extern-signature && tsc -p . && pnpm lint-typespec-library && pnpm api-extractor", "watch": "tsc -p . --watch", "gen-extern-signature": "tspd --enable-experimental gen-extern-signature .", "lint-typespec-library": "tsp compile . --warn-as-error --import @typespec/library-linter --no-emit", "test": "vitest run", "test:ui": "vitest --ui", "test:ci": "vitest run --coverage --reporter=junit --reporter=default", "lint": "eslint . --max-warnings=0", "lint:fix": "eslint . --fix", "regen-docs": "tspd doc . --enable-experimental --output-dir ../../website/src/content/docs/docs/emitters/json-schema/reference", "api-extractor": "api-extractor run --local --verbose" } }