@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.
- package/dist/lib/application/files/js/package.json +16 -16
- package/dist/lib/application/files/ts/package.json +23 -23
- package/dist/lib/application/files/ts/tsconfig.json +7 -1
- package/dist/lib/application/schema.json +7 -2
- package/dist/lib/class/schema.json +1 -1
- package/dist/lib/client-app/angular/schema.json +1 -1
- package/dist/lib/controller/schema.json +1 -1
- package/dist/lib/decorator/schema.json +1 -1
- package/dist/lib/filter/schema.json +1 -1
- package/dist/lib/gateway/schema.json +1 -1
- package/dist/lib/guard/schema.json +1 -1
- package/dist/lib/interceptor/schema.json +1 -1
- package/dist/lib/interface/schema.json +1 -1
- package/dist/lib/library/library.factory.js +2 -3
- package/dist/lib/library/schema.json +1 -1
- package/dist/lib/middleware/schema.json +1 -1
- package/dist/lib/module/schema.json +1 -1
- package/dist/lib/pipe/schema.json +1 -1
- package/dist/lib/provider/schema.json +1 -1
- package/dist/lib/resolver/schema.json +1 -1
- package/dist/lib/resource/schema.json +1 -1
- package/dist/lib/service/schema.json +1 -1
- package/dist/lib/sub-app/schema.json +1 -1
- package/package.json +21 -21
- package/dist/lib/sub-app/files/.DS_Store +0 -0
- package/dist/lib/sub-app/workspace/.DS_Store +0 -0
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@nestjs/common": "^
|
|
18
|
-
"@nestjs/core": "^
|
|
19
|
-
"@nestjs/platform-express": "^
|
|
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": "^
|
|
21
|
+
"rxjs": "^7.2.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@nestjs/testing": "^
|
|
25
|
-
"@babel/core": "
|
|
26
|
-
"@babel/node": "
|
|
27
|
-
"@babel/plugin-proposal-decorators": "
|
|
28
|
-
"@babel/plugin-transform-runtime": "
|
|
29
|
-
"@babel/preset-env": "
|
|
30
|
-
"@babel/register": "
|
|
31
|
-
"@babel/runtime": "
|
|
32
|
-
"jest": "
|
|
33
|
-
"nodemon": "
|
|
34
|
-
"prettier": "
|
|
35
|
-
"supertest": "
|
|
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": "^
|
|
25
|
-
"@nestjs/core": "^
|
|
26
|
-
"@nestjs/platform-express": "^
|
|
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": "^
|
|
29
|
+
"rxjs": "^7.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@nestjs/cli": "^
|
|
33
|
-
"@nestjs/schematics": "^
|
|
34
|
-
"@nestjs/testing": "^
|
|
35
|
-
"@types/express": "^4.17.
|
|
36
|
-
"@types/jest": "^
|
|
37
|
-
"@types/node": "^
|
|
38
|
-
"@types/supertest": "^2.0.
|
|
39
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
40
|
-
"@typescript-eslint/parser": "^4.
|
|
41
|
-
"eslint": "^7.
|
|
42
|
-
"eslint-config-prettier": "^8.
|
|
43
|
-
"eslint-plugin-prettier": "^3.
|
|
44
|
-
"jest": "^
|
|
45
|
-
"prettier": "^2.2
|
|
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": "^
|
|
48
|
-
"ts-loader": "^
|
|
49
|
-
"ts-node": "^
|
|
50
|
-
"tsconfig-paths": "^3.
|
|
51
|
-
"typescript": "^4.
|
|
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",
|
|
@@ -64,10 +64,9 @@ function updateJestConfig(jestOptions, options, packageKey, distRoot) {
|
|
|
64
64
|
if (!jestOptions.moduleNameMapper) {
|
|
65
65
|
jestOptions.moduleNameMapper = {};
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const packageKeyRegex = '^' + packageKey + '(|/.*)$';
|
|
68
68
|
const packageRoot = core_1.join('<rootDir>', distRoot);
|
|
69
|
-
jestOptions.moduleNameMapper[
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/schematics",
|
|
3
|
-
"version": "
|
|
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": "
|
|
44
|
-
"@angular-devkit/schematics": "
|
|
45
|
-
"fs-extra": "
|
|
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": "
|
|
51
|
-
"@commitlint/config-angular": "
|
|
52
|
-
"@types/fs-extra": "9.0.
|
|
53
|
-
"@types/jest": "
|
|
54
|
-
"@types/node": "
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "4.
|
|
56
|
-
"@typescript-eslint/parser": "4.
|
|
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.
|
|
59
|
-
"eslint-config-prettier": "8.
|
|
60
|
-
"eslint-plugin-import": "2.
|
|
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": "
|
|
64
|
-
"jest": "
|
|
63
|
+
"husky": "7.0.1",
|
|
64
|
+
"jest": "27.0.6",
|
|
65
65
|
"nyc": "15.1.0",
|
|
66
|
-
"release-it": "
|
|
67
|
-
"ts-jest": "
|
|
68
|
-
"ts-node": "
|
|
69
|
-
"typescript": "3.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.
|
|
72
|
+
"typescript": "^3.4.5 || ^4.3.5"
|
|
73
73
|
},
|
|
74
74
|
"schematics": "./dist/collection.json",
|
|
75
75
|
"husky": {
|
|
Binary file
|
|
Binary file
|