diff --git a/package-lock.json b/package-lock.json index 6943c7508..350d582db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2928,6 +2928,12 @@ "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", "dev": true }, + "detect-indent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", + "integrity": "sha1-OHHMCmoALow+Wzz38zYmRnXwa50=", + "dev": true + }, "detect-newline": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", @@ -9812,6 +9818,22 @@ "flatstr": "^1.0.9" } }, + "sort-object-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-object-keys/-/sort-object-keys-1.1.2.tgz", + "integrity": "sha1-06bEjcKsl+a8lDZ2luA/bQnTeVI=", + "dev": true + }, + "sort-package-json": { + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-1.21.0.tgz", + "integrity": "sha512-G920kGKROov3kS32jnmf03YolcGTkdONKbOv+Hi1Db7D9lBXhNU5aNMZCE0j/hfDqd/zmPVmpSiuhSOt3Lv+4A==", + "dev": true, + "requires": { + "detect-indent": "^5.0.0", + "sort-object-keys": "^1.1.2" + } + }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", diff --git a/package.json b/package.json index a65bfb2b9..046cf5964 100644 --- a/package.json +++ b/package.json @@ -2,23 +2,33 @@ "name": "@nestjs/terminus", "version": "6.0.0", "description": "Nest - modern, fast, powerful node.js web framework (@terminus)", - "author": "Kamil Mysliwiec", - "main": "dist/index.js", + "repository": { + "url": "https://github.com/nestjs/terminus" + }, "license": "MIT", + "author": "Livio Brunner", + "main": "dist/index.js", "scripts": { "build": "rm -rf dist && tsc -p tsconfig.json", + "doc": "./node_modules/.bin/compodoc --disableProtected --disableInternal --disablePrivate -p tsconfig.json", + "lint": "tslint -c tslint.json -p tsconfig.json", "precommit": "lint-staged", - "prepublish:npm": "npm run build", "prepublish": "npm run build", - "publish:npm": "npm publish --access public", "prepublish:next": "npm run build", "publish:next": "npm publish --access public --tag next", + "prepublish:npm": "npm run build", + "publish:npm": "npm publish --access public", "test": "npm run test:e2e && npm run test:ut", - "test:ut": "jest --config=jest.json", - "test:ut:cov": "npm run test:ut -- --coverage", "test:e2e": "jest --config=e2e/jest-e2e.json --detectOpenHandles --forceExit", - "doc": "./node_modules/.bin/compodoc --disableProtected --disableInternal --disablePrivate -p tsconfig.json", - "lint": "tslint -c tslint.json -p tsconfig.json" + "test:ut": "jest --config=jest.json", + "test:ut:cov": "npm run test:ut -- --coverage" + }, + "lint-staged": { + "*.ts": [ + "prettier --write", + "sort-package-json", + "git add" + ] }, "devDependencies": { "@compodoc/compodoc": "1.1.9", @@ -51,6 +61,7 @@ "reflect-metadata": "0.1.13", "rxjs": "6.4.0", "rxjs-compat": "6.4.0", + "sort-package-json": "^1.21.0", "supertest": "4.0.2", "ts-jest": "24.0.0", "ts-node": "8.0.3", @@ -58,44 +69,37 @@ "tslint-config-prettier": "1.18.0", "typescript": "3.3.3333" }, - "repository": { - "url": "https://github.com/BrunnerLivio/nest-terminus" - }, "peerDependencies": { + "@godaddy/terminus": "^4.1.0", + "@grpc/proto-loader": "^0.4.0", "@nestjs/common": "^6.0.0", "@nestjs/core": "^6.0.0", - "@nestjs/typeorm": "^6.0.0", "@nestjs/mongoose": "^6.0.0", - "typeorm": "^0.2.14", + "@nestjs/platform-express": "^6.0.0", + "@nestjs/platform-fastify": "^6.0.0", + "@nestjs/typeorm": "^6.0.0", + "amqp-connection-manager": "^2.3.0", + "amqplib": "^0.5.3", + "grpc": "^1.19.0", "mongoose": "^5.4.19", - "@godaddy/terminus": "^4.1.0", - "reflect-metadata": "0.1.13", - "rxjs": "^6.4.0", "nats": "^1.2.2", "redis": "^2.8.0", - "@grpc/proto-loader": "^0.4.0", - "grpc": "^1.19.0", - "amqp-connection-manager": "^2.3.0", - "amqplib": "^0.5.3" + "reflect-metadata": "0.1.13", + "rxjs": "^6.4.0", + "typeorm": "^0.2.14" }, "optionalDependencies": { - "typeorm": "^0.2.14", + "@grpc/proto-loader": "^0.4.0", + "@nestjs/microservices": "^6.0.0", + "@nestjs/mongoose": "^6.0.0", "@nestjs/typeorm": "^6.0.0", + "amqp-connection-manager": "^2.3.0", + "amqplib": "^0.5.3", + "grpc": "^1.19.0", "mongoose": "^5.4.19", - "@nestjs/mongoose": "^6.0.0", "mqtt": "^2.18.8", - "@nestjs/microservices": "^6.0.0", "nats": "^1.2.2", "redis": "^2.8.0", - "@grpc/proto-loader": "^0.4.0", - "grpc": "^1.19.0", - "amqp-connection-manager": "^2.3.0", - "amqplib": "^0.5.3" - }, - "lint-staged": { - "*.ts": [ - "prettier --write", - "git add" - ] + "typeorm": "^0.2.14" } }