{ "name": "yapi-to-typescript", "version": "3.37.1", "description": "根据 YApi 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。", "keywords": [ "yapi", "codegen", "typescript" ], "homepage": "https://github.com/fjc0k/yapi-to-typescript", "bugs": { "url": "https://github.com/fjc0k/yapi-to-typescript/issues" }, "repository": { "type": "git", "url": "git@github.com:fjc0k/yapi-to-typescript.git" }, "license": "MIT", "author": { "name": "Jay Fong", "email": "fjc0kb@gmail.com", "url": "https://github.com/fjc0k" }, "sideEffects": false, "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "types": "lib/esm/index.d.ts", "bin": { "ytt": "lib/cjs/cli.js" }, "files": [ "lib" ], "scripts": { "build": "haoma compile", "docs": "npm run docs:build && gh-pages --dist docs/dist --dest handbook", "docs:build": "dumi build", "docs:dev": "dumi dev", "release": "yarn testOnly && standard-version -a && yarn build && yarn docs && git push --follow-tags origin master && npm publish", "releaseBeta": "yarn testOnly && standard-version -a --release-as patch --prerelease beta && yarn build && git push --follow-tags origin master && npm publish --tag next", "test": "jest --coverage", "testApi": "ts-node -T src/cli.ts", "testOnly": "jest", "testUpdateSnapshot": "jest --coverage -u" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{css,less,scss,sass,html,htm,vue,yml,yaml,json,md}": [ "prettier --write" ], "*.{js,jsx,ts,tsx}": [ "eslint --fix", "prettier --write" ] }, "dependencies": { "@babel/runtime": "^7.13.10", "@types/json-schema": "^7.0.9", "change-case": "^3.0.2", "consola": "^2.3.0", "dayjs": "^1.8.32", "form-data": "^3.0.0", "fs-extra": "^7.0.1", "get-port": "^5.1.1", "json-schema-to-typescript": "^10.1.4", "json5": "^2.1.0", "node-fetch": "^2", "ora": "^3.4.0", "prettier": "^2.7.1", "prompts": "^2.0.4", "proxy-agent": "^5.0.0", "signal-exit": "^3.0.3", "swagger-client": "3.18.4", "to-json-schema": "^0.2.5", "ts-node": "^8.0.2", "typescript": "^4.2.3", "vtils": "^4.57.0", "yargs": "^16.2.0" }, "devDependencies": { "@types/fs-extra": "^5.0.4", "@types/json5": "^0.0.30", "@types/node": "^10.12.10", "@types/node-fetch": "^2.6.2", "@types/prompts": "^1.2.0", "@types/react": "^16.9.2", "@types/signal-exit": "^3.0.0", "@types/swagger-schema-official": "^2.0.21", "@types/to-json-schema": "^0.2.0", "@types/yargs": "^16.0.1", "codecov": "^3", "dumi": "^1.1.10", "eslint": "^7", "gh-pages": "^2.0.1", "haoma": "^2.31.0", "husky": "^4", "jest": "^26", "lint-staged": "^10", "notify-dingtalk": "^1.2.0", "openapi-types": "^7.0.1", "shx": "^0.3.2", "standard-version": "^9.3.2", "tempy": "^0.3.0", "typedoc": "^0.14.2", "typescript-snapshots-plugin": "^1.7.0" }, "engines": { "node": ">=10.19.0" } }