feat(package): 添加 start 脚本命令
- 在 package.json 中新增 "start" 脚本- 使用 node index.js 启动应用- 便于生产环境直接运行服务
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node index.js",
|
||||
"dev": "nodemon index.js",
|
||||
"build": "pkg index.js --targets=node18-win-x64,node18-linux-x64 --output=dist/"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user