UNPKG

openapi-typescript

Version:

Convert OpenAPI 3.0 & 3.1 schemas to TypeScript

81 lines 2.31 kB
{ "name": "openapi-typescript", "description": "Convert OpenAPI 3.0 & 3.1 schemas to TypeScript", "version": "7.6.1", "author": { "name": "Drew Powers", "email": "drew@pow.rs" }, "license": "MIT", "bin": { "openapi-typescript": "bin/cli.js" }, "type": "module", "main": "./dist/index.js", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./*": "./*" }, "homepage": "https://openapi-ts.dev", "repository": { "type": "git", "url": "https://github.com/openapi-ts/openapi-typescript", "directory": "packages/openapi-typescript" }, "keywords": [ "swagger", "typescript", "ts", "dts", "openapi", "codegen", "generation", "openapi 3", "node" ], "bugs": { "url": "https://github.com/openapi-ts/openapi-typescript/issues" }, "peerDependencies": { "typescript": "^5.x" }, "dependencies": { "@redocly/openapi-core": "^1.28.0", "ansi-colors": "^4.1.3", "change-case": "^5.4.4", "parse-json": "^8.1.0", "supports-color": "^9.4.0", "yargs-parser": "^21.1.1" }, "devDependencies": { "@types/degit": "^2.8.6", "@types/js-yaml": "^4.0.9", "degit": "^2.8.4", "del-cli": "^5.1.0", "esbuild": "^0.24.2", "execa": "^8.0.1", "strip-ansi": "^7.1.0", "typescript": "^5.7.3", "vite-node": "^2.1.8" }, "scripts": { "build": "pnpm run build:clean && pnpm run build:esm && pnpm run build:cjs", "build:clean": "del-cli dist", "build:esm": "tsc -p tsconfig.build.json", "build:cjs": "esbuild --bundle --platform=node --target=es2019 --outfile=dist/index.cjs --external:@redocly/ajv --external:@redocly/openapi-core --external:typescript src/index.ts", "dev": "tsc -p tsconfig.build.json --watch", "download:schemas": "vite-node ./scripts/download-schemas.ts", "format": "biome format . --write", "lint": "biome check .", "test": "pnpm run \"/^test:/\"", "test:examples": "tsc -p tsconfig.examples.json --noEmit", "test:js": "vitest run", "test:ts": "tsc --noEmit", "update:examples": "pnpm run build && pnpm run download:schemas && vite-node ./scripts/update-examples.ts", "prepublish": "pnpm run build", "version": "pnpm run build" } }