UNPKG

openapi-typescript

Version:

Convert OpenAPI 3.0 & 3.1 schemas to TypeScript

80 lines 2.15 kB
{ "name": "openapi-typescript", "description": "Convert OpenAPI 3.0 & 3.1 schemas to TypeScript", "version": "7.8.0", "author": { "name": "Drew Powers", "email": "drew@pow.rs" }, "license": "MIT", "bin": { "openapi-typescript": "bin/cli.js" }, "type": "module", "main": "./dist/index.mjs", "exports": { ".": { "import": "./dist/index.mjs", "require": "./dist/index.cjs", "default": "./dist/index.mjs" }, "./*.js": "./*.mjs", "./*": "./*" }, "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.34.3", "ansi-colors": "^4.1.3", "change-case": "^5.4.4", "parse-json": "^8.3.0", "supports-color": "^10.0.0", "yargs-parser": "^21.1.1" }, "devDependencies": { "@types/degit": "^2.8.6", "@types/js-yaml": "^4.0.9", "degit": "^2.8.4", "execa": "^9.5.3", "strip-ansi": "^7.1.0", "typescript": "^5.8.3", "vite-node": "^3.1.3" }, "scripts": { "build": "unbuild", "dev": "tsc -p tsconfig.build.json --watch", "download:schemas": "vite-node ./scripts/download-schemas.ts", "format": "biome format . --write", "lint": "pnpm run lint:js && pnpm run lint:ts", "lint:js": "biome check .", "lint:ts": "tsc --noEmit", "test": "pnpm run test:js && pnpm run test:examples && pnpm run test:exports", "test:js": "vitest run", "test:exports": "pnpm run build && attw --pack .", "test:examples": "tsc -p tsconfig.examples.json --noEmit", "update:examples": "pnpm run build && pnpm run download:schemas && vite-node ./scripts/update-examples.ts", "prepublish": "pnpm run build", "version": "pnpm run build" } }