|
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 --require 'node_modules/reflect-metadata/Reflect.js'", |
9 | | - "integration-test": "mocha integration/**/*.spec.ts --reporter spec --require ts-node/register --require 'node_modules/reflect-metadata/Reflect.js'", |
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 --require 'node_modules/reflect-metadata/Reflect.js'", |
| 10 | + "integration-test": |
| 11 | + "mocha integration/**/*.spec.ts --reporter spec --require ts-node/register --require 'node_modules/reflect-metadata/Reflect.js'", |
| 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 | "postinstall": "opencollective", |
15 | 19 | "copy-docs": "gulp copy-docs", |
16 | 20 | "prepare:npm": "npm run build:lib && npm run copy-docs", |
17 | | - "prepare:rc": "npm run build:lib && npm run copy-docs", |
18 | | - "prepare:next": "npm run build:lib && npm run copy-docs", |
19 | | - "prepare:beta": "npm run build:lib && npm run copy-docs", |
20 | | - "publish": "npm run prepare && ./node_modules/.bin/lerna publish --exact -m \"chore(@nestjs) publish %s release\"", |
21 | | - "publish:rc": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=rc -m \"chore(@nestjs) publish %s release\"", |
22 | | - "publish:next": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=next --skip-git -m \"chore(@nestjs) publish %s release\"", |
23 | | - "publish:beta": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=beta -m \"chore(@nestjs) publish %s release\"", |
24 | | - "publish:test": "npm run prepare && ./node_modules/.bin/lerna publish --npm-tag=test --skip-git -m \"chore(@nestjs) publish %s release\"" |
| 21 | + "publish": |
| 22 | + "npm run prepare:npm && ./node_modules/.bin/lerna publish --exact -m \"chore(@nestjs) publish %s release\"", |
| 23 | + "publish:rc": |
| 24 | + "npm run prepare:npm && ./node_modules/.bin/lerna publish --npm-tag=rc -m \"chore(@nestjs) publish %s release\"", |
| 25 | + "publish:next": |
| 26 | + "npm run prepare:npm && ./node_modules/.bin/lerna publish --npm-tag=next --skip-git -m \"chore(@nestjs) publish %s release\"", |
| 27 | + "publish:beta": |
| 28 | + "npm run prepare:npm && ./node_modules/.bin/lerna publish --npm-tag=beta -m \"chore(@nestjs) publish %s release\"", |
| 29 | + "publish:test": |
| 30 | + "npm run prepare:npm && ./node_modules/.bin/lerna publish --npm-tag=test --skip-git -m \"chore(@nestjs) publish %s release\"" |
25 | 31 | }, |
26 | 32 | "engines": { |
27 | 33 | "node": ">= 8.9.0" |
|
130 | 136 | } |
131 | 137 | }, |
132 | 138 | "nyc": { |
133 | | - "include": [ |
134 | | - "packages/**/*.ts" |
135 | | - ], |
| 139 | + "include": ["packages/**/*.ts"], |
136 | 140 | "exclude": [ |
137 | 141 | "node_modules/", |
138 | 142 | "packages/**/*.spec.ts", |
|
151 | 155 | "packages/common/serializer/**/*", |
152 | 156 | "packages/common/services/logger.service.ts" |
153 | 157 | ], |
154 | | - "extension": [ |
155 | | - ".ts" |
156 | | - ], |
157 | | - "require": [ |
158 | | - "ts-node/register" |
159 | | - ], |
160 | | - "reporter": [ |
161 | | - "text-summary", |
162 | | - "html" |
163 | | - ], |
| 158 | + "extension": [".ts"], |
| 159 | + "require": ["ts-node/register"], |
| 160 | + "reporter": ["text-summary", "html"], |
164 | 161 | "sourceMap": true, |
165 | 162 | "instrument": true |
166 | 163 | }, |
167 | 164 | "lint-staged": { |
168 | | - "packages/**/*.{ts,json}": [ |
169 | | - "npm run format", |
170 | | - "git add" |
171 | | - ] |
| 165 | + "packages/**/*.{ts,json}": ["npm run format", "git add"] |
172 | 166 | } |
173 | 167 | } |
0 commit comments