fix: default context {}

This commit is contained in:
熊潇 2024-11-30 11:06:31 +08:00
parent 810a93628d
commit ebfdbe6cee
2 changed files with 9 additions and 4 deletions

View File

@ -12,6 +12,11 @@
], ],
"$comment": "Type must be either 'system-app' or 'micro-app' or 'gateway-app'." "$comment": "Type must be either 'system-app' or 'micro-app' or 'gateway-app'."
}, },
"home": {
"type": "string",
"pattern": "^/.*",
"$comment": "https://kevisual.xiongxiao.me"
},
"single": { "single": {
"type": "boolean", "type": "boolean",
"$comment": "是否单例模式,独立启动服务。" "$comment": "是否单例模式,独立启动服务。"

View File

@ -1,6 +1,6 @@
{ {
"name": "@kevisual/use-config", "name": "@kevisual/use-config",
"version": "1.0.3", "version": "1.0.4",
"types": "dist/config.d.ts", "types": "dist/config.d.ts",
"scripts": { "scripts": {
"build": "npm run clean && rollup -c", "build": "npm run clean && rollup -c",
@ -26,19 +26,19 @@
"@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1", "@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-typescript": "^12.1.1", "@rollup/plugin-typescript": "^12.1.1",
"@types/node": "^22.9.0", "@types/node": "^22.10.1",
"chalk": "^5.3.0", "chalk": "^5.3.0",
"commander": "^12.1.0", "commander": "^12.1.0",
"glob": "^11.0.0", "glob": "^11.0.0",
"json-schema-to-ts": "^3.1.1", "json-schema-to-ts": "^3.1.1",
"json5": "^2.2.3", "json5": "^2.2.3",
"rollup": "^4.26.0", "rollup": "^4.27.4",
"rollup-plugin-copy": "^3.5.0", "rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.1", "rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-inject": "^3.0.2", "rollup-plugin-inject": "^3.0.2",
"tslib": "^2.8.1", "tslib": "^2.8.1",
"typescript": "^5.6.2" "typescript": "^5.7.2"
}, },
"exports": { "exports": {
".": { ".": {