yapi-ts-builder
Version:
基于 yapi-to-typescript 实现的 YApi 接口定义生成工具
94 lines (93 loc) • 2.4 kB
JSON
{
"name": "yapi-ts-builder",
"version": "1.0.2",
"description": "基于 yapi-to-typescript 实现的 YApi 接口定义生成工具",
"keywords": [
"yapi",
"codegen",
"typescript"
],
"license": "MIT",
"author": "ruanhuifang",
"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": "tsc -p tsconfig.json && tsc -p tsconfig.cjs.json",
"release": "standard-version -a && yarn build && npm publish",
"releaseBeta": "standard-version -a --release-as patch --prerelease beta && yarn build && npm publish --tag next",
"test": "jest --coverage",
"testApi": "ts-node --project tsconfig.cjs.json 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": "^15",
"json5": "^2.1.0",
"node-fetch": "^2",
"ora": "^3.4.0",
"prompts": "^2.0.4",
"proxy-agent": "^5.0.0",
"signal-exit": "^3.0.3",
"to-json-schema": "^0.2.5",
"ts-node": "^8.0.2",
"typescript": "^4.9.5",
"vtils": "^4.57.0",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/fs-extra": "^5.0.4",
"@types/json5": "^0.0.30",
"@types/lodash": "^4.14.195",
"@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/to-json-schema": "^0.2.0",
"@types/yargs": "^16.0.1",
"eslint": "^7",
"haoma": "^2.31.0",
"husky": "^4",
"jest": "^26",
"lint-staged": "^10",
"openapi-types": "^7.0.1",
"prettier": "^2.7.1",
"shx": "^0.3.2",
"standard-version": "^9.3.2",
"tempy": "^0.3.0",
"typedoc": "^0.14.2"
},
"engines": {
"node": ">=10.19.0"
}
}