mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
* Update api-client package.json to use ES module format * Enhance api-client configuration by adding sideEffects flag and refactoring tsdown config for better output formats
59 lines
1.5 KiB
JSON
59 lines
1.5 KiB
JSON
{
|
|
"name": "@halo-dev/api-client",
|
|
"version": "2.21.1",
|
|
"description": "API Client for Halo 2",
|
|
"homepage": "https://github.com/halo-dev/halo/tree/main/ui/packages/api-client#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/halo-dev/halo/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/halo-dev/halo.git",
|
|
"directory": "ui/packages/api-client"
|
|
},
|
|
"license": "GPL-3.0",
|
|
"author": "@halo-dev",
|
|
"contributors": [
|
|
{
|
|
"name": "Ryan Wang",
|
|
"url": "https://github.com/ruibaby"
|
|
}
|
|
],
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./dist/index.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"typesVersions": {
|
|
"*": {
|
|
"*": [
|
|
"./dist/*",
|
|
"./dist/entry/index.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"gen": "rimraf --glob './src/**' && openapi-generator-cli generate -i ../../../api-docs/openapi/v3_0/aggregated.json -g typescript-axios -c ./.openapi_config.yaml -o ./src --type-mappings='set=Array' --global-property apiDocs=false,modelDocs=false",
|
|
"prepublishOnly": "pnpm run build"
|
|
},
|
|
"dependencies": {
|
|
"qs": "^6.14.0"
|
|
},
|
|
"devDependencies": {
|
|
"@openapitools/openapi-generator-cli": "^2.25.0",
|
|
"@types/qs": "^6.14.0",
|
|
"rimraf": "^5.0.10"
|
|
},
|
|
"peerDependencies": {
|
|
"axios": "^1.12.*"
|
|
}
|
|
}
|