162 lines
4.9 KiB
JSON
162 lines
4.9 KiB
JSON
{
|
|
"name": "server-next",
|
|
"version": "3.7.6",
|
|
"description": "",
|
|
"author": "Innei <https://innei.ren>",
|
|
"private": true,
|
|
"license": "MIT",
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": [
|
|
"prettier --ignore-path ./.prettierignore --write ",
|
|
"eslint --cache"
|
|
]
|
|
},
|
|
"homepage": "https://github.com/mx-space/server-next#readme",
|
|
"issues": "https://github.com/mx-space/server-next/issues",
|
|
"scripts": {
|
|
"prepare": "husky install",
|
|
"prebuild": "rimraf dist",
|
|
"build": "nest build",
|
|
"bundle": "rimraf out && yarn run build && cd dist/src && npx ncc build main.js -o ../../out -m",
|
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
"start": "cross-env NODE_ENV=development nest start -w",
|
|
"start:dev": "nest build --webpack --webpackPath webpack-hmr.config.js --watch",
|
|
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
|
|
"start:prod": "cross-env NODE_ENV=production node dist/main",
|
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
"prod": "cross-env NODE_ENV=production pm2-runtime start ecosystem.config.js",
|
|
"prod:pm2": "cross-env NODE_ENV=production pm2 restart ecosystem.config.js",
|
|
"prod:stop": "pm2 stop ecosystem.config.js",
|
|
"prod:debug": "cross-env NODE_ENV=production nest start --debug --watch",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:cov": "jest --coverage",
|
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
"test:e2e": "jest --config ./test/jest-e2e.js",
|
|
"patch": "node bin/patch.js",
|
|
"docs": "npx @compodoc/compodoc -p tsconfig.json -s -d docs",
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
"bump": "node scripts/bump-version.js"
|
|
},
|
|
"bump": {
|
|
"before": [
|
|
"git pull --rebase"
|
|
],
|
|
"after": [
|
|
"sh ./create-tags.sh"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@algolia/client-search": "*",
|
|
"@nestjs/common": "8.0.9",
|
|
"@nestjs/config": "1.0.1",
|
|
"@nestjs/core": "8.0.9",
|
|
"@nestjs/graphql": "9.0.5",
|
|
"@nestjs/jwt": "8.0.0",
|
|
"@nestjs/mapped-types": "*",
|
|
"@nestjs/passport": "8.0.1",
|
|
"@nestjs/platform-fastify": "8.0.9",
|
|
"@nestjs/platform-socket.io": "8.0.9",
|
|
"@nestjs/schedule": "1.0.1",
|
|
"@nestjs/swagger": "5.1.0",
|
|
"@nestjs/websockets": "8.0.9",
|
|
"@typegoose/auto-increment": "1.0.0",
|
|
"@typegoose/typegoose": "8.3.0",
|
|
"algoliasearch": "4.10.5",
|
|
"apollo-server-fastify": "3.3.0",
|
|
"axios": "*",
|
|
"bcrypt": "5.0.1",
|
|
"cache-manager": "3.4.4",
|
|
"cache-manager-ioredis": "2.1.0",
|
|
"camelcase-keys": "7.0.0",
|
|
"chalk": "*",
|
|
"class-transformer": "0.4.0",
|
|
"class-validator": "0.13.1",
|
|
"cos-nodejs-sdk-v5": "2.10.4",
|
|
"dayjs": "1.10.7",
|
|
"dotenv": "*",
|
|
"ejs": "3.1.6",
|
|
"fastify-cookie": "5.3.1",
|
|
"fastify-multipart": "5.0.1",
|
|
"fastify-swagger": "4.12.2",
|
|
"graphql": "15.6.0",
|
|
"html-minifier": "4.0.0",
|
|
"image-size": "1.0.0",
|
|
"inquirer": "*",
|
|
"js-yaml": "*",
|
|
"jszip": "3.7.1",
|
|
"lodash": "*",
|
|
"marked": "3.0.4",
|
|
"mkdirp": "*",
|
|
"mongoose": "*",
|
|
"mongoose-lean-id": "0.2.0",
|
|
"mongoose-lean-virtuals": "0.8.1",
|
|
"mongoose-paginate-v2": "1.4.2",
|
|
"nanoid": "3.1.28",
|
|
"nestjs-typegoose": "7.1.38",
|
|
"node-vibrant": "3.2.1-alpha.1",
|
|
"nodemailer": "6.6.5",
|
|
"passport": "0.5.0",
|
|
"passport-jwt": "4.0.0",
|
|
"pluralize": "*",
|
|
"redis": "3.1.2",
|
|
"reflect-metadata": "0.1.13",
|
|
"rxjs": "7.3.1",
|
|
"snakecase-keys": "5.0.0",
|
|
"ts-morph": "*",
|
|
"ua-parser-js": "0.7.28",
|
|
"xss": "1.0.9",
|
|
"yargs": "*",
|
|
"zx": "4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@innei-util/eslint-config-ts": "latest",
|
|
"@innei-util/prettier": "latest",
|
|
"@nestjs/cli": "8.1.2",
|
|
"@nestjs/schematics": "8.0.3",
|
|
"@nestjs/testing": "8.0.9",
|
|
"@types/bcrypt": "5.0.0",
|
|
"@types/cache-manager": "3.4.2",
|
|
"@types/ejs": "3.1.0",
|
|
"@types/html-minifier": "4.0.1",
|
|
"@types/ioredis": "4.27.4",
|
|
"@types/jest": "27.0.2",
|
|
"@types/lodash": "4.14.175",
|
|
"@types/marked": "3.0.1",
|
|
"@types/mongoose-paginate-v2": "1.4.0",
|
|
"@types/node": "16.9.2",
|
|
"@types/nodemailer": "6.4.4",
|
|
"@types/passport-jwt": "3.0.6",
|
|
"@types/redis": "2.8.32",
|
|
"@types/ua-parser-js": "0.7.36",
|
|
"@vercel/ncc": "0.31.1",
|
|
"cross-env": "7.0.3",
|
|
"eslint": "*",
|
|
"fastify": "*",
|
|
"husky": "7.0.2",
|
|
"ioredis": "*",
|
|
"jest": "27.2.4",
|
|
"lint-staged": "11.1.2",
|
|
"prettier": "2.4.1",
|
|
"rimraf": "3.0.2",
|
|
"run-script-webpack-plugin": "0.0.11",
|
|
"semver": "*",
|
|
"socket.io": "*",
|
|
"ts-jest": "27.0.5",
|
|
"ts-loader": "9.2.6",
|
|
"ts-node": "10.2.1",
|
|
"tsconfig-paths": "3.11.0",
|
|
"typescript": "4.4.3",
|
|
"webpack": "*",
|
|
"webpack-node-externals": "3.0.0"
|
|
},
|
|
"resolutions": {
|
|
"typescript": "4.4.3",
|
|
"apollo-server-fastify/fastify": "*"
|
|
}
|
|
} |