|
5 | 5 | "scripts": { |
6 | 6 | "coverage": "nyc report --reporter=text-lcov | coveralls", |
7 | 7 | "precommit": "lint-staged", |
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", |
| 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", |
16 | 12 | "clean": "gulp clean:bundle", |
17 | 13 | "build": "npm run clean && gulp build", |
18 | 14 | "prebuild:dev": "rm -rf node_modules/@nestjs", |
19 | 15 | "build:dev": "gulp build --dist node_modules/@nestjs && gulp move", |
20 | 16 | "postinstall": "opencollective", |
21 | 17 | "prerelease": "gulp copy-misc && gulp build --dist node_modules/@nestjs", |
22 | | - "publish": |
23 | | - "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --force-publish --exact -m \"chore(@nestjs) publish %s release\"", |
24 | | - "publish:rc": |
25 | | - "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --npm-tag=rc -m \"chore(@nestjs) publish %s release\"", |
26 | | - "publish:next": |
27 | | - "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --npm-tag=next --skip-git -m \"chore(@nestjs) publish %s release\"", |
28 | | - "publish:beta": |
29 | | - "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --npm-tag=beta -m \"chore(@nestjs) publish %s release\"", |
30 | | - "publish:test": |
31 | | - "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --force-publish --npm-tag=test --skip-git -m \"chore(@nestjs) publish %s release\"" |
| 18 | + "publish": "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --force-publish --exact -m \"chore(@nestjs) publish %s release\"", |
| 19 | + "publish:rc": "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --npm-tag=rc -m \"chore(@nestjs) publish %s release\"", |
| 20 | + "publish:next": "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --npm-tag=next --skip-git -m \"chore(@nestjs) publish %s release\"", |
| 21 | + "publish:beta": "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --npm-tag=beta -m \"chore(@nestjs) publish %s release\"", |
| 22 | + "publish:test": "npm run prerelease && npm run build && ./node_modules/.bin/lerna publish --force-publish --npm-tag=test --skip-git -m \"chore(@nestjs) publish %s release\"" |
32 | 23 | }, |
33 | 24 | "engines": { |
34 | 25 | "node": ">= 8.9.0" |
|
141 | 132 | } |
142 | 133 | }, |
143 | 134 | "nyc": { |
144 | | - "include": ["packages/**/*.ts"], |
| 135 | + "include": [ |
| 136 | + "packages/**/*.ts" |
| 137 | + ], |
145 | 138 | "exclude": [ |
146 | 139 | "node_modules/", |
147 | 140 | "packages/**/*.spec.ts", |
|
161 | 154 | "packages/common/serializer/**/*", |
162 | 155 | "packages/common/services/logger.service.ts" |
163 | 156 | ], |
164 | | - "extension": [".ts"], |
165 | | - "require": ["ts-node/register"], |
166 | | - "reporter": ["text-summary", "html"], |
| 157 | + "extension": [ |
| 158 | + ".ts" |
| 159 | + ], |
| 160 | + "require": [ |
| 161 | + "ts-node/register" |
| 162 | + ], |
| 163 | + "reporter": [ |
| 164 | + "text-summary", |
| 165 | + "html" |
| 166 | + ], |
167 | 167 | "sourceMap": true, |
168 | 168 | "instrument": true |
169 | 169 | }, |
170 | 170 | "lint-staged": { |
171 | | - "packages/**/*.{ts,json}": ["npm run format", "git add"] |
| 171 | + "packages/**/*.{ts,json}": [ |
| 172 | + "npm run format", |
| 173 | + "git add" |
| 174 | + ] |
172 | 175 | } |
173 | 176 | } |
0 commit comments