openapi-typescript
Version:
Generate TypeScript types from Swagger OpenAPI specs
87 lines (86 loc) • 2.34 kB
JSON
{
"name": "openapi-typescript",
"description": "Generate TypeScript types from Swagger OpenAPI specs",
"version": "4.1.1",
"engines": {
"node": ">= 12.0.0",
"npm": ">= 7.0.0"
},
"author": "drew@pow.rs",
"license": "ISC",
"bin": {
"openapi-typescript": "bin/cli.js"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"exports": {
"browser": "./dist/esm/index.js",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"files": [
"bin",
"dist",
"src",
"types"
],
"repository": {
"type": "git",
"url": "https://github.com/drwpow/openapi-typescript"
},
"keywords": [
"swagger",
"typescript",
"ts",
"dts",
"openapi",
"codegen",
"generation",
"openapi 3",
"node"
],
"bugs": {
"url": "https://github.com/drwpow/openapi-typescript/issues"
},
"homepage": "https://github.com/drwpow/openapi-typescript#readme",
"scripts": {
"build": "rm -rf dist && tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json",
"format": "npm run prettier -w .",
"lint": "eslint .",
"prepare": "npm run build",
"pregenerate": "npm run build",
"test": "npm run build && jest --no-cache",
"test:watch": "npm run build && jest --no-cache --watch",
"test:update": "npm run build && jest --no-cache --u",
"test:coverage": "npm run build && jest --no-cache --coverage && codecov",
"test:coverage:local": "npm run build && jest --no-cache --collectCoverage",
"typecheck": "tsc --noEmit --project tsconfig.esm.json",
"version": "npm run build"
},
"dependencies": {
"hosted-git-info": "^3.0.8",
"js-yaml": "^4.1.0",
"kleur": "^4.1.4",
"meow": "^9.0.0",
"mime": "^2.5.2",
"node-fetch": "^2.6.5",
"prettier": "^2.4.1",
"slash": "^3.0.0",
"tiny-glob": "^0.2.9"
},
"devDependencies": {
"@types/jest": "^27.0.2",
"@types/js-yaml": "^4.0.1",
"@types/mime": "^2.0.3",
"@types/node-fetch": "^2.5.12",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
"codecov": "^3.8.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.2.4",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3"
}
}