From 117be3062d089a26b9624f0d1bde160e09ccacbc Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 4 Apr 2025 02:29:51 +0800 Subject: [PATCH] temp --- app.config.json5.example | 13 ------------- package.json | 18 +++++++++--------- src/main.ts | 2 +- 3 files changed, 10 insertions(+), 23 deletions(-) delete mode 100644 app.config.json5.example diff --git a/app.config.json5.example b/app.config.json5.example deleted file mode 100644 index 43456af..0000000 --- a/app.config.json5.example +++ /dev/null @@ -1,13 +0,0 @@ -{ - port: 3000, - postgres: { - username: 'postgres', - host: 'localhost', - database: 'postgres', - password: 'postgres', - port: 5432, - }, - tableName: { - table: 'name', - } -} \ No newline at end of file diff --git a/package.json b/package.json index 1caa1b0..a6450b7 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ "src" ], "dependencies": { - "@kevisual/code-center-module": "0.0.13", + "@kevisual/code-center-module": "0.0.18", "@kevisual/mark": "0.0.7", - "@kevisual/router": "0.0.9", + "@kevisual/router": "0.0.10", "cookie": "^1.0.2", "dayjs": "^1.11.13", "formidable": "^3.5.2", @@ -43,7 +43,7 @@ }, "devDependencies": { "@kevisual/types": "^0.0.6", - "@kevisual/use-config": "^1.0.9", + "@kevisual/use-config": "^1.0.10", "@rollup/plugin-alias": "^5.1.1", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-json": "^6.1.0", @@ -53,20 +53,20 @@ "@types/crypto-js": "^4.2.2", "@types/formidable": "^3.4.5", "@types/lodash-es": "^4.17.12", - "@types/node": "^22.13.10", + "@types/node": "^22.14.0", "concurrently": "^9.1.2", "cross-env": "^7.0.3", - "jsrepo": "^1.44.2", + "jsrepo": "^1.45.3", "nodemon": "^3.1.9", - "pm2": "^5.4.3", + "pm2": "^6.0.5", "rimraf": "^6.0.1", - "rollup": "^4.35.0", + "rollup": "^4.39.0", "rollup-plugin-copy": "^3.5.0", - "rollup-plugin-dts": "^6.1.1", + "rollup-plugin-dts": "^6.2.1", "rollup-plugin-esbuild": "^6.2.1", "tape": "^5.9.0", "tsx": "^4.19.3", "typescript": "^5.8.2" }, - "packageManager": "pnpm@10.6.2" + "packageManager": "pnpm@10.7.1" } \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 6e431cb..459bde4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ // 单应用实例启动 -import { useConfig } from '@kevisual/use-config'; +import { useConfig } from '@kevisual/use-config/env'; import { app } from './index.ts'; const config = useConfig();