chore(project):重构项目入口文件结构
- 添加 index.js 作为新的入口文件 - 更新 package.json 中的 main 字段指向 index.js - 修改 dev 脚本使用 index.js 启动应用 - 移除旧的 app.js 入口相关配置 - 添加 build 脚本用于打包应用 - 清理 package.json 中的冗余字段
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user