UNPKG

@spec2ts/openapi-client

Version:

Utility to convert OpenAPI v3 specifications to Typescript HTTP client using TypeScript native compiler

75 lines (74 loc) 2.17 kB
{ "name": "@spec2ts/openapi-client", "version": "3.1.3", "description": "Utility to convert OpenAPI v3 specifications to Typescript HTTP client using TypeScript native compiler", "author": "Touchify <dev@touchify.co>", "license": "MIT", "main": "index.js", "homepage": "https://github.com/touchifyapp/spec2ts/blob/master/packages/openapi#readme", "repository": { "type": "git", "url": "https://github.com/touchifyapp/spec2ts" }, "publishConfig": { "access": "public" }, "bin": { "oapi2tsclient": "./bin/oapi2tsclient.js" }, "files": [ "*.js", "*.d.ts", "bin/**/*.js", "cli/**/*.js", "cli/**/*.d.ts", "lib/**/*.js", "lib/**/*.d.ts", "lib/templates/*.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": { "@spec2ts/core": "^3.0.2", "@spec2ts/jsonschema": "^3.0.5", "@spec2ts/openapi": "^3.1.3", "openapi3-ts": "^4.1.2", "typescript": "^5.0.0", "yargs": "^17.7.2" }, "devDependencies": { "del-cli": "^5.1.0", "eslint": "^8.49.0", "jest": "^29.6.4" }, "keywords": [ "openapi", "specification", "openapi3", "spec", "typescript", "client", "http", "rest", "compile", "compiler", "ast", "transpile", "interface", "typing", "spec2ts", "share" ], "gitHead": "81f76779f541e0bc2ef8d7051a0121fff07916ae" }