UNPKG

@api-helper/cli

Version:

根据 Swagger 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。

114 lines 2.98 kB
{ "name": "@api-helper/cli", "version": "3.3.3", "description": "根据 Swagger 的接口定义生成 TypeScript/JavaScript 的接口类型及其请求函数代码。", "bin": { "apih": "bin/index.js" }, "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ "bin", "es", "lib", "README.md" ], "engines": { "node": ">=14.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/ztz2/api-helper.git" }, "keywords": [ "api", "json", "yapi", "share", "schema", "typing", "codegen", "swagger", "openapi", "compile", "transpile", "interface", "api-helper", "typescript" ], "author": { "name": "ztz2", "email": "448941273@qq.com", "url": "https://github.com/ztz2" }, "bugs": { "url": "https://github.com/ztz2/api-helper/issues" }, "homepage": "https://github.com/ztz2/api-helper#readme", "dependencies": { "await-to-js": "^3.0.0", "axios": "^1.7.7", "commander": "^10.0.1", "crypto-js": "^4.1.1", "fast-glob": "^3.2.12", "findup-sync": "^5.0.0", "fs-extra": "^7.0.1", "json-schema": "^0.4.0", "lcid": "^4.0.1", "lodash": "^4.17.21", "micromatch": "^4.0.8", "npmlog": "^7.0.1", "ora": "^3.4.0", "pinyin-pro": "^3.20.0", "prettier": "^2.8.4", "prompts": "^2.4.2", "qs": "^5.2.1", "tmp": "^0.2.1", "ts-node": "^10.0.0", "url-parse": "^1.5.10", "@api-helper/core": "^3.3.3", "@api-helper/template": "^3.3.3" }, "devDependencies": { "@types/crypto-js": "^4.1.1", "@types/findup-sync": "^4.0.5", "@types/fs-extra": "^5.0.4", "@types/jest": "29.2.4", "@types/json-schema": "^7.0.9", "@types/lodash": "^4.14.194", "@types/micromatch": "^4.0.9", "@types/node": "^20.2.1", "@types/npmlog": "^4.1.4", "@types/prompts": "^1.2.0", "@types/qs": "^6.9.7", "@types/tmp": "^0.2.3", "@types/url-parse": "^1.4.8", "@typescript-eslint/eslint-plugin": "^5.54.0", "@typescript-eslint/parser": "^5.0.0", "eslint": "^7.32.0", "jest": "^29.5.0", "json-schema": "^0.4.0", "lint-staged": "^10", "openapi-types": "^7.0.1", "shx": "^0.3.4", "ts-jest": "29.0.3", "tsc-alias": "^1.8.6", "tsconfig-paths-jest": "^0.0.1", "typescript": "^4.5.5" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "license": "MIT", "scripts": { "build": "npm run lint && npm run test && npm run clean && npm run build:es && npm run build:node", "build:es": "tsc --project ./tsconfig.es.json && tsc-alias -p tsconfig.es.alias.json", "build:node": "tsc --project tsconfig.node.json && npm run build:alias", "build:alias": "tsc-alias -p tsconfig.alias.json", "clean": "shx rm -rf bin && shx rm -rf lib", "lint": "eslint src/**/*.ts", "test": "jest", "test:update": "npm run test -- -u" } }