Skip to content

Commit afa9903

Browse files
refactor(@nestjs/common) rename class serializer
1 parent a7d465b commit afa9903

File tree

2 files changed

+22
-25
lines changed

2 files changed

+22
-25
lines changed

package.json

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,29 @@
55
"scripts": {
66
"coverage": "nyc report --reporter=text-lcov | coveralls",
77
"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",
1216
"build": "gulp build && gulp move",
1317
"build:lib": "gulp build --dist bundle",
1418
"copy-docs": "gulp copy-docs",
1519
"prepare": "npm run build:lib && npm run copy-docs",
1620
"prepare:rc": "npm run build:lib && npm run copy-docs",
1721
"prepare:next": "npm run build:lib && npm run copy-docs",
1822
"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\""
2331
},
2432
"engines": {
2533
"node": ">= 8.9.0"
@@ -125,9 +133,7 @@
125133
"logo": "https://opencollective.com/opencollective/logo.txt"
126134
},
127135
"nyc": {
128-
"include": [
129-
"packages/**/*.ts"
130-
],
136+
"include": ["packages/**/*.ts"],
131137
"exclude": [
132138
"node_modules/",
133139
"packages/**/*.spec.ts",
@@ -143,25 +149,16 @@
143149
"packages/core/middleware/middleware-module.ts",
144150
"packages/core/injector/module-ref.ts",
145151
"packages/common/cache/**/*",
152+
"packages/common/serializer/**/*",
146153
"packages/common/services/logger.service.ts"
147154
],
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"],
158158
"sourceMap": true,
159159
"instrument": true
160160
},
161161
"lint-staged": {
162-
"packages/**/*.{ts,json}": [
163-
"npm run format",
164-
"git add"
165-
]
162+
"packages/**/*.{ts,json}": ["npm run format", "git add"]
166163
}
167164
}

0 commit comments

Comments
 (0)