From 24f1f88a45968865e8ed131633b9d8bfd7abc065 Mon Sep 17 00:00:00 2001 From: Kubbo <390378816@qq.com> Date: Sat, 18 Oct 2025 11:27:07 +0800 Subject: [PATCH] =?UTF-8?q?chore(project):=E9=87=8D=E6=9E=84=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=85=A5=E5=8F=A3=E6=96=87=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 index.js 作为新的入口文件 - 更新 package.json 中的 main 字段指向 index.js - 修改 dev 脚本使用 index.js 启动应用 - 移除旧的 app.js 入口相关配置 - 添加 build 脚本用于打包应用 - 清理 package.json 中的冗余字段 --- index.js | 1 + package.json | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..22b63e3 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +require("./app") diff --git a/package.json b/package.json index 6e27f3d..040faaf 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { "name": "vless-api", "version": "1.0.0", - "description": "", - "main": "app.js", + "main": "index.js", "scripts": { - "start": "node app.js", - "dev": "nodemon app.js" + "dev": "nodemon index.js", + "build": "pkg index.js --targets=node18-win-x64,node18-linux-x64 --output=dist" }, "author": "kubbo", "license": "ISC",