node 服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

39 lines
1.1 KiB

{
"name": "nodejs",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"tsnode": "ts-node ./src/index.ts",
"build": "node ./build.js",
"start:dev": "npm run build && cross-env NODE_ENV=dev nodemon app.js",
"start:test": "npm run build && cross-env NODE_ENV=test pm2 start pm2.json",
"start:stg": "npm run build && cross-env NODE_ENV=stg pm2 start pm2.json",
"start:prod": "npm run build && cross-env NODE_ENV=prod pm2 start pm2.json",
"test": "cross-env NODE_ENV=test ts-node ./src/app.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"devDependencies": {
"@types/koa": "^2.15.0",
"@types/koa-json": "^2.0.23",
"@types/koa-router": "^7.4.8",
"@types/node": "^20.14.9",
"typescript": "^5.5.2"
},
"dependencies": {
"axios": "^1.7.0",
"esbuild": "^0.21.5",
"koa": "^2.13.0",
"koa-body": "^4.2.0",
"koa-helmet": "^6.0.0",
"koa-json": "^2.0.2",
"koa-router": "^10.0.0",
"koa2-cors": "^2.0.6",
"log4js": "^6.3.0",
"md5": "^2.3.0",
"moment": "^2.29.1",
"nodemon": "^2.0.6"
}
}