@nestjs/schematics 7.3.1 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,25 +14,25 @@
14
14
  "test:e2e": "jest --config ./test/jest-e2e.json"
15
15
  },
16
16
  "dependencies": {
17
- "@nestjs/common": "^7.0.0",
18
- "@nestjs/core": "^7.0.0",
19
- "@nestjs/platform-express": "^7.0.0",
17
+ "@nestjs/common": "^8.0.0",
18
+ "@nestjs/core": "^8.0.0",
19
+ "@nestjs/platform-express": "^8.0.0",
20
20
  "reflect-metadata": "^0.1.13",
21
- "rxjs": "^6.5.4"
21
+ "rxjs": "^7.2.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@nestjs/testing": "^7.0.0",
25
- "@babel/core": "^7.6.2",
26
- "@babel/node": "^7.6.2",
27
- "@babel/plugin-proposal-decorators": "^7.6.0",
28
- "@babel/plugin-transform-runtime": "^7.6.2",
29
- "@babel/preset-env": "^7.6.2",
30
- "@babel/register": "^7.6.2",
31
- "@babel/runtime": "^7.6.2",
32
- "jest": "26.6.3",
33
- "nodemon": "^1.19.2",
34
- "prettier": "^1.18.2",
35
- "supertest": "^4.0.2"
24
+ "@nestjs/testing": "^8.0.0",
25
+ "@babel/core": "7.15.0",
26
+ "@babel/node": "7.14.9",
27
+ "@babel/plugin-proposal-decorators": "7.14.5",
28
+ "@babel/plugin-transform-runtime": "7.15.0",
29
+ "@babel/preset-env": "7.15.0",
30
+ "@babel/register": "7.15.3",
31
+ "@babel/runtime": "7.15.3",
32
+ "jest": "27.0.6",
33
+ "nodemon": "2.0.12",
34
+ "prettier": "2.3.2",
35
+ "supertest": "6.1.6"
36
36
  },
37
37
  "jest": {
38
38
  "moduleFileExtensions": [
@@ -21,34 +21,34 @@
21
21
  "test:e2e": "jest --config ./test/jest-e2e.json"
22
22
  },
23
23
  "dependencies": {
24
- "@nestjs/common": "^7.6.15",
25
- "@nestjs/core": "^7.6.15",
26
- "@nestjs/platform-express": "^7.6.15",
24
+ "@nestjs/common": "^8.0.0",
25
+ "@nestjs/core": "^8.0.0",
26
+ "@nestjs/platform-express": "^8.0.0",
27
27
  "reflect-metadata": "^0.1.13",
28
28
  "rimraf": "^3.0.2",
29
- "rxjs": "^6.6.6"
29
+ "rxjs": "^7.2.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@nestjs/cli": "^7.6.0",
33
- "@nestjs/schematics": "^7.3.0",
34
- "@nestjs/testing": "^7.6.15",
35
- "@types/express": "^4.17.11",
36
- "@types/jest": "^26.0.22",
37
- "@types/node": "^14.14.36",
38
- "@types/supertest": "^2.0.10",
39
- "@typescript-eslint/eslint-plugin": "^4.19.0",
40
- "@typescript-eslint/parser": "^4.19.0",
41
- "eslint": "^7.22.0",
42
- "eslint-config-prettier": "^8.1.0",
43
- "eslint-plugin-prettier": "^3.3.1",
44
- "jest": "^26.6.3",
45
- "prettier": "^2.2.1",
32
+ "@nestjs/cli": "^8.0.0",
33
+ "@nestjs/schematics": "^8.0.0",
34
+ "@nestjs/testing": "^8.0.0",
35
+ "@types/express": "^4.17.13",
36
+ "@types/jest": "^27.0.1",
37
+ "@types/node": "^16.0.0",
38
+ "@types/supertest": "^2.0.11",
39
+ "@typescript-eslint/eslint-plugin": "^4.28.2",
40
+ "@typescript-eslint/parser": "^4.28.2",
41
+ "eslint": "^7.30.0",
42
+ "eslint-config-prettier": "^8.3.0",
43
+ "eslint-plugin-prettier": "^3.4.0",
44
+ "jest": "^27.0.6",
45
+ "prettier": "^2.3.2",
46
46
  "supertest": "^6.1.3",
47
- "ts-jest": "^26.5.4",
48
- "ts-loader": "^8.0.18",
49
- "ts-node": "^9.1.1",
50
- "tsconfig-paths": "^3.9.0",
51
- "typescript": "^4.2.3"
47
+ "ts-jest": "^27.0.3",
48
+ "ts-loader": "^9.2.3",
49
+ "ts-node": "^10.0.0",
50
+ "tsconfig-paths": "^3.10.1",
51
+ "typescript": "^4.3.5"
52
52
  },
53
53
  "jest": {
54
54
  "moduleFileExtensions": [
@@ -10,6 +10,12 @@
10
10
  "sourceMap": true,
11
11
  "outDir": "./dist",
12
12
  "baseUrl": "./",
13
- "incremental": true
13
+ "incremental": true,
14
+ "skipLibCheck": true,
15
+ "strictNullChecks": <%= strict %>,
16
+ "noImplicitAny": <%= strict %>,
17
+ "strictBindCallApply": <%= strict %>,
18
+ "forceConsistentCasingInFileNames": <%= strict %>,
19
+ "noFallthroughCasesInSwitch": <%= strict %>
14
20
  }
15
21
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestApplication",
3
+ "$id": "SchematicsNestApplication",
4
4
  "title": "Nest Application Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -25,7 +25,12 @@
25
25
  },
26
26
  "directory": {
27
27
  "type": "string",
28
- "description": "Nest application destination directory"
28
+ "description": "Nest application destination directory."
29
+ },
30
+ "strict": {
31
+ "type": "boolean",
32
+ "description": "With TypeScript strict mode.",
33
+ "default": false
29
34
  },
30
35
  "version": {
31
36
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestClass",
3
+ "$id": "SchematicsNestClass",
4
4
  "title": "Nest Class Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestModule",
3
+ "$id": "SchematicsNestModule",
4
4
  "title": "Nest Module Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestController",
3
+ "$id": "SchematicsNestController",
4
4
  "title": "Nest Controller Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestDecorator",
3
+ "$id": "SchematicsNestDecorator",
4
4
  "title": "Nest Decorator Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestFilter",
3
+ "$id": "SchematicsNestFilter",
4
4
  "title": "Nest Filter Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestGateway",
3
+ "$id": "SchematicsNestGateway",
4
4
  "title": "Nest Gateway Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestGuard",
3
+ "$id": "SchematicsNestGuard",
4
4
  "title": "Nest Guard Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestInterceptor",
3
+ "$id": "SchematicsNestInterceptor",
4
4
  "title": "Nest Interceptor Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestInterface",
3
+ "$id": "SchematicsNestInterface",
4
4
  "title": "Nest Interface Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -64,10 +64,9 @@ function updateJestConfig(jestOptions, options, packageKey, distRoot) {
64
64
  if (!jestOptions.moduleNameMapper) {
65
65
  jestOptions.moduleNameMapper = {};
66
66
  }
67
- const deepPackagePath = packageKey + '/(.*)';
67
+ const packageKeyRegex = '^' + packageKey + '(|/.*)$';
68
68
  const packageRoot = core_1.join('<rootDir>', distRoot);
69
- jestOptions.moduleNameMapper[deepPackagePath] = core_1.join(packageRoot, '$1');
70
- jestOptions.moduleNameMapper[packageKey] = packageRoot;
69
+ jestOptions.moduleNameMapper[packageKeyRegex] = core_1.join(packageRoot, '$1');
71
70
  }
72
71
  function updateNpmScripts(scripts, options) {
73
72
  if (!scripts) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestLibrary",
3
+ "$id": "SchematicsNestLibrary",
4
4
  "title": "Nest Library Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestMiddleware",
3
+ "$id": "SchematicsNestMiddleware",
4
4
  "title": "Nest Middleware Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestModule",
3
+ "$id": "SchematicsNestModule",
4
4
  "title": "Nest Module Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestPipe",
3
+ "$id": "SchematicsNestPipe",
4
4
  "title": "Nest Pipe Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestProvider",
3
+ "$id": "SchematicsNestProvider",
4
4
  "title": "Nest Provider Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestResolver",
3
+ "$id": "SchematicsNestResolver",
4
4
  "title": "Nest Resolver Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestResource",
3
+ "$id": "SchematicsNestResource",
4
4
  "title": "Nest Resource Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestService",
3
+ "$id": "SchematicsNestService",
4
4
  "title": "Nest Service Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "id": "SchematicsNestSubApp",
3
+ "$id": "SchematicsNestSubApp",
4
4
  "title": "Nest SubApp Options Schema",
5
5
  "type": "object",
6
6
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/schematics",
3
- "version": "7.3.1",
3
+ "version": "8.0.3",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -40,36 +40,36 @@
40
40
  },
41
41
  "homepage": "https://github.com/nestjs/schematics#readme",
42
42
  "dependencies": {
43
- "@angular-devkit/core": "11.2.4",
44
- "@angular-devkit/schematics": "11.2.4",
45
- "fs-extra": "9.1.0",
43
+ "@angular-devkit/core": "12.0.5",
44
+ "@angular-devkit/schematics": "12.0.5",
45
+ "fs-extra": "10.0.0",
46
46
  "jsonc-parser": "3.0.0",
47
47
  "pluralize": "8.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@commitlint/cli": "^11.0.0",
51
- "@commitlint/config-angular": "^11.0.0",
52
- "@types/fs-extra": "9.0.9",
53
- "@types/jest": "26.0.21",
54
- "@types/node": "14.14.36",
55
- "@typescript-eslint/eslint-plugin": "4.19.0",
56
- "@typescript-eslint/parser": "4.19.0",
50
+ "@commitlint/cli": "13.1.0",
51
+ "@commitlint/config-angular": "13.1.0",
52
+ "@types/fs-extra": "9.0.12",
53
+ "@types/jest": "27.0.1",
54
+ "@types/node": "16.0.0",
55
+ "@typescript-eslint/eslint-plugin": "4.28.2",
56
+ "@typescript-eslint/parser": "4.28.2",
57
57
  "cpx": "1.5.0",
58
- "eslint": "7.22.0",
59
- "eslint-config-prettier": "8.1.0",
60
- "eslint-plugin-import": "2.22.1",
58
+ "eslint": "7.32.0",
59
+ "eslint-config-prettier": "8.3.0",
60
+ "eslint-plugin-import": "2.24.1",
61
61
  "gulp": "4.0.2",
62
62
  "gulp-clean": "0.4.0",
63
- "husky": "5.2.0",
64
- "jest": "26.6.3",
63
+ "husky": "7.0.1",
64
+ "jest": "27.0.6",
65
65
  "nyc": "15.1.0",
66
- "release-it": "^14.2.1",
67
- "ts-jest": "26.5.4",
68
- "ts-node": "9.1.1",
69
- "typescript": "3.9.9"
66
+ "release-it": "14.11.5",
67
+ "ts-jest": "27.0.5",
68
+ "ts-node": "10.2.1",
69
+ "typescript": "3.9.10"
70
70
  },
71
71
  "peerDependencies": {
72
- "typescript": "^3.4.5 || ^4.0.0"
72
+ "typescript": "^3.4.5 || ^4.3.5"
73
73
  },
74
74
  "schematics": "./dist/collection.json",
75
75
  "husky": {
Binary file