Files
core/package.json
2022-07-27 21:41:35 +08:00

195 lines
6.2 KiB
JSON

{
"name": "@mx-space/core",
"version": "3.35.6",
"author": "Innei <https://innei.ren>",
"private": true,
"license": "AGPLv3",
"dashboard": {
"repo": "mx-space/mx-admin",
"version": "3.22.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --cache --fix",
"prettier --ignore-path ./.prettierignore --write "
]
},
"repository": {
"directory": "mx-space/core",
"url": "https://github.com/mx-space/core"
},
"homepage": "https://github.com/mx-space/core#readme",
"issues": "https://github.com/mx-space/core/issues",
"scripts": {
"prepare": "husky install",
"prebuild": "rimraf dist",
"build": "nest build",
"build:webpack": "nest build --webpack --webpackPath ./configs/webpack.config.js -c ./configs/nest-cli.webpack.json",
"dev": "npm run start",
"repl": "npm run start -- --entryFile repl",
"bundle": "rimraf out && npm run build && cd dist/src && npx ncc build main.js -o ../../out -m && cd ../.. && chmod +x out/index.js",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "cross-env NODE_ENV=development nest start -w --path tsconfig.json",
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
"start:cluster": "cross-env NODE_ENV=development nest start --watch -- --cluster --workers 2",
"start:prod": "cross-env NODE_ENV=production node dist/src/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",
"test:all": "jest --config ./test/jest-e2e.js && jest",
"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": {
"before": [
"git pull --rebase",
"git-cliff > CHANGELOG.md",
"pnpm i",
"node scripts/get-latest-admin-version.js"
],
"after": [
"sh ./scripts/assets-push.sh"
]
},
"dependencies": {
"@algolia/client-search": "*",
"@babel/core": "7.18.9",
"@babel/plugin-transform-modules-commonjs": "7.18.6",
"@babel/plugin-transform-typescript": "7.18.8",
"@babel/types": "*",
"@fastify/cookie": "7.2.0",
"@fastify/multipart": "7.1.0",
"@fastify/static": "6.4.1",
"@nestjs/common": "9.0.5",
"@nestjs/core": "9.0.5",
"@nestjs/event-emitter": "1.3.0",
"@nestjs/mapped-types": "*",
"@nestjs/platform-fastify": "9.0.5",
"@nestjs/platform-socket.io": "9.0.5",
"@nestjs/schedule": "2.1.0",
"@nestjs/swagger": "6.0.4",
"@nestjs/throttler": "3.0.0",
"@nestjs/websockets": "9.0.5",
"@socket.io/redis-adapter": "7.2.0",
"@socket.io/redis-emitter": "4.1.1",
"@typegoose/auto-increment": "1.4.1",
"@typegoose/typegoose": "9.10.1",
"@types/jsonwebtoken": "8.5.8",
"algoliasearch": "4.14.1",
"axios": "*",
"axios-retry": "3.3.1",
"bcrypt": "5.0.1",
"cache-manager": "4.1.0",
"cache-manager-ioredis": "2.1.0",
"camelcase-keys": "7.0.2",
"class-transformer": "0.5.1",
"class-validator": "0.13.2",
"class-validator-jsonschema": "npm:@innei/class-validator-jsonschema@3.1.1",
"consola": "*",
"cos-nodejs-sdk-v5": "2.11.12",
"dayjs": "1.11.4",
"ejs": "3.1.8",
"fs-extra": "*",
"get-image-colors": "4.0.1",
"image-size": "1.0.2",
"inquirer": "*",
"isbot": "3.5.0",
"js-yaml": "*",
"json5": "2.2.1",
"jsonwebtoken": "8.5.1",
"jszip": "3.10.0",
"linkedom": "0.14.12",
"lodash": "*",
"marked": "4.0.18",
"mime-types": "*",
"mkdirp": "*",
"mongoose": "6.5.0",
"mongoose-aggregate-paginate-v2": "1.0.6",
"mongoose-lean-getters": "0.3.5",
"mongoose-lean-id": "0.3.0",
"mongoose-lean-virtuals": "0.9.1",
"mongoose-paginate-v2": "1.7.0",
"nanoid": "3.3.4",
"node-machine-id": "1.1.12",
"node-pty": "0.10.1",
"nodemailer": "6.7.7",
"pluralize": "*",
"qs": "6.11.0",
"reflect-metadata": "0.1.13",
"rxjs": "7.5.6",
"semver": "^7",
"slugify": "1.6.5",
"snakecase-keys": "5.4.2",
"ua-parser-js": "1.0.2",
"vm2": "3.9.10",
"wildcard-match": "^5.1.2",
"xss": "1.0.13",
"zx-cjs": "6.1.0"
},
"devDependencies": {
"@innei/eslint-config-ts": "latest",
"@innei/prettier": "latest",
"@nestjs/cli": "9.0.0",
"@nestjs/schematics": "9.0.1",
"@nestjs/testing": "9.0.5",
"@types/babel__core": "7.1.19",
"@types/bcrypt": "5.0.0",
"@types/cache-manager": "4.0.1",
"@types/cron": "2.0.0",
"@types/ejs": "3.1.1",
"@types/fs-extra": "9.0.13",
"@types/get-image-colors": "4.0.1",
"@types/jest": "28.1.6",
"@types/js-yaml": "4.0.5",
"@types/lodash": "4.14.182",
"@types/marked": "4.0.3",
"@types/mime-types": "2.1.1",
"@types/mongoose-aggregate-paginate-v2": "1.0.5",
"@types/node": "^16",
"@types/nodemailer": "6.4.4",
"@types/qs": "6.9.7",
"@types/semver": "7.3.10",
"@types/ua-parser-js": "0.7.36",
"@types/validator": "13.7.4",
"@vercel/ncc": "0.34.0",
"cron": "*",
"cross-env": "7.0.3",
"eslint": "*",
"eslint-plugin-unused-imports": "2.0.0",
"husky": "8.0.1",
"ioredis": "5.2.2",
"jest": "28.1.3",
"lint-staged": "13.0.3",
"prettier": "2.7.1",
"rimraf": "3.0.2",
"socket.io": "*",
"ts-jest": "28.0.7",
"ts-loader": "9.3.1",
"ts-node": "10.9.1",
"tsconfig-paths": "4.0.0",
"typescript": "4.7.4"
},
"optionalDependencies": {
"mongodb-memory-server": "8.8.0",
"redis-memory-server": "0.5.0"
},
"resolutions": {
"typescript": "4.7.4",
"ioredis": "5.2.2",
"webpack": "5.73.0",
"semver": "^7"
}
}