chore(project):重构项目入口文件结构

- 添加 index.js 作为新的入口文件
- 更新 package.json 中的 main 字段指向 index.js
- 修改 dev 脚本使用 index.js 启动应用
- 移除旧的 app.js 入口相关配置
- 添加 build 脚本用于打包应用
- 清理 package.json 中的冗余字段
This commit is contained in:
2025-10-18 11:27:07 +08:00
parent d13b80611c
commit 24f1f88a45
2 changed files with 4 additions and 4 deletions

1
index.js Normal file
View File

@@ -0,0 +1 @@
require("./app")

View File

@@ -1,11 +1,10 @@
{ {
"name": "vless-api", "name": "vless-api",
"version": "1.0.0", "version": "1.0.0",
"description": "", "main": "index.js",
"main": "app.js",
"scripts": { "scripts": {
"start": "node app.js", "dev": "nodemon index.js",
"dev": "nodemon app.js" "build": "pkg index.js --targets=node18-win-x64,node18-linux-x64 --output=dist"
}, },
"author": "kubbo", "author": "kubbo",
"license": "ISC", "license": "ISC",