|
5 | 5 | "scripts": { |
6 | 6 | "coverage": "nyc report --reporter=text-lcov | coveralls", |
7 | 7 | "precommit": "lint-staged", |
8 | | - "test": "nyc --require ts-node/register mocha packages/**/*.spec.ts --reporter spec", |
9 | | - "integration-test": "mocha integration/**/*.spec.ts --reporter spec --require ts-node/register", |
10 | | - "lint": "tslint -p tsconfig.json -c tslint.json \"packages/**/*.ts\" -e \"*.spec.ts\"", |
11 | | - "format": "prettier **/**/*.ts --ignore-path ./.prettierignore --write && git status", |
| 8 | + "test": |
| 9 | + "nyc --require ts-node/register mocha packages/**/*.spec.ts --reporter spec", |
| 10 | + "integration-test": |
| 11 | + "mocha integration/**/*.spec.ts --reporter spec --require ts-node/register", |
| 12 | + "lint": |
| 13 | + "tslint -p tsconfig.json -c tslint.json \"packages/**/*.ts\" -e \"*.spec.ts\"", |
| 14 | + "format": |
| 15 | + "prettier **/**/*.ts --ignore-path ./.prettierignore --write && git status", |
12 | 16 | "build": "gulp build && gulp move", |
13 | 17 | "build:lib": "gulp build --dist bundle", |
14 | 18 | "copy-docs": "gulp copy-docs", |
15 | 19 | "prepare": "npm run build:lib && npm run copy-docs", |
16 | 20 | "prepare:rc": "npm run build:lib && npm run copy-docs", |
17 | 21 | "prepare:next": "npm run build:lib && npm run copy-docs", |
18 | 22 | "prepare:beta": "npm run build:lib && npm run copy-docs", |
19 | | - "publish": "npm run prepare && ./node_modules/.bin/lerna publish --exact -m \"chore(@nestjs) publish %s release\"", |
20 | | - "publish:rc": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=rc -m \"chore(@nestjs) publish %s release\"", |
21 | | - "publish:next": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=next --skip-git -m \"chore(@nestjs) publish %s release\"", |
22 | | - "publish:beta": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=beta -m \"chore(@nestjs) publish %s release\"" |
| 23 | + "publish": |
| 24 | + "npm run prepare && ./node_modules/.bin/lerna publish --exact -m \"chore(@nestjs) publish %s release\"", |
| 25 | + "publish:rc": |
| 26 | + "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=rc -m \"chore(@nestjs) publish %s release\"", |
| 27 | + "publish:next": |
| 28 | + "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=next --skip-git -m \"chore(@nestjs) publish %s release\"", |
| 29 | + "publish:beta": |
| 30 | + "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=beta -m \"chore(@nestjs) publish %s release\"" |
23 | 31 | }, |
24 | 32 | "engines": { |
25 | 33 | "node": ">= 8.9.0" |
|
125 | 133 | "logo": "https://opencollective.com/opencollective/logo.txt" |
126 | 134 | }, |
127 | 135 | "nyc": { |
128 | | - "include": [ |
129 | | - "packages/**/*.ts" |
130 | | - ], |
| 136 | + "include": ["packages/**/*.ts"], |
131 | 137 | "exclude": [ |
132 | 138 | "node_modules/", |
133 | 139 | "packages/**/*.spec.ts", |
|
143 | 149 | "packages/core/middleware/middleware-module.ts", |
144 | 150 | "packages/core/injector/module-ref.ts", |
145 | 151 | "packages/common/cache/**/*", |
| 152 | + "packages/common/serializer/**/*", |
146 | 153 | "packages/common/services/logger.service.ts" |
147 | 154 | ], |
148 | | - "extension": [ |
149 | | - ".ts" |
150 | | - ], |
151 | | - "require": [ |
152 | | - "ts-node/register" |
153 | | - ], |
154 | | - "reporter": [ |
155 | | - "text-summary", |
156 | | - "html" |
157 | | - ], |
| 155 | + "extension": [".ts"], |
| 156 | + "require": ["ts-node/register"], |
| 157 | + "reporter": ["text-summary", "html"], |
158 | 158 | "sourceMap": true, |
159 | 159 | "instrument": true |
160 | 160 | }, |
161 | 161 | "lint-staged": { |
162 | | - "packages/**/*.{ts,json}": [ |
163 | | - "npm run format", |
164 | | - "git add" |
165 | | - ] |
| 162 | + "packages/**/*.{ts,json}": ["npm run format", "git add"] |
166 | 163 | } |
167 | 164 | } |
0 commit comments