@nestjs/schematics 11.0.7 → 11.0.9
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/.prettierrc +1 -1
- package/dist/lib/application/files/js/package.json +6 -6
- package/dist/lib/application/files/ts/.prettierrc +1 -1
- package/dist/lib/application/files/ts/eslint.config.mjs +3 -2
- package/dist/lib/application/files/ts/test/app.e2e-__specFileSuffix__.ts +1 -1
- package/dist/lib/library/library.factory.js +4 -5
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/jest-module-mapper.d.ts +1 -0
- package/dist/utils/jest-module-mapper.js +9 -0
- package/package.json +16 -16
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@nestjs/testing": "^11.0.1",
|
|
25
|
-
"@babel/core": "7.28.
|
|
25
|
+
"@babel/core": "7.28.4",
|
|
26
26
|
"@babel/node": "7.28.0",
|
|
27
27
|
"@babel/plugin-proposal-decorators": "7.28.0",
|
|
28
|
-
"@babel/plugin-transform-runtime": "7.28.
|
|
29
|
-
"@babel/preset-env": "7.28.
|
|
30
|
-
"@babel/register": "7.
|
|
31
|
-
"@babel/runtime": "7.28.
|
|
32
|
-
"jest": "30.0
|
|
28
|
+
"@babel/plugin-transform-runtime": "7.28.3",
|
|
29
|
+
"@babel/preset-env": "7.28.3",
|
|
30
|
+
"@babel/register": "7.28.3",
|
|
31
|
+
"@babel/runtime": "7.28.4",
|
|
32
|
+
"jest": "30.2.0",
|
|
33
33
|
"nodemon": "3.1.10",
|
|
34
34
|
"prettier": "3.6.2",
|
|
35
35
|
"supertest": "7.1.4"
|
|
@@ -28,7 +28,8 @@ export default tseslint.config(
|
|
|
28
28
|
rules: {
|
|
29
29
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
30
30
|
'@typescript-eslint/no-floating-promises': 'warn',
|
|
31
|
-
'@typescript-eslint/no-unsafe-argument': 'warn'
|
|
31
|
+
'@typescript-eslint/no-unsafe-argument': 'warn',
|
|
32
|
+
"prettier/prettier": ["error", { endOfLine: "auto" }],
|
|
32
33
|
},
|
|
33
34
|
},
|
|
34
|
-
);
|
|
35
|
+
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Test, TestingModule } from '@nestjs/testing';
|
|
2
2
|
import { INestApplication } from '@nestjs/common';
|
|
3
|
-
import
|
|
3
|
+
import request from 'supertest';
|
|
4
4
|
import { App } from 'supertest/types';
|
|
5
5
|
import { AppModule } from './../src/app.module';
|
|
6
6
|
|
|
@@ -85,9 +85,9 @@ function updateJestConfig(jestOptions, options, packageKey, distRoot) {
|
|
|
85
85
|
if (!jestOptions.moduleNameMapper) {
|
|
86
86
|
jestOptions.moduleNameMapper = {};
|
|
87
87
|
}
|
|
88
|
-
const packageKeyRegex = '^' + packageKey + '(|/.*)$';
|
|
89
88
|
const packageRoot = (0, core_1.join)('<rootDir>', distRoot);
|
|
90
|
-
|
|
89
|
+
const newMapper = (0, utils_1.createModuleNameMapper)(packageKey, packageRoot);
|
|
90
|
+
Object.assign(jestOptions.moduleNameMapper, newMapper);
|
|
91
91
|
(0, utils_1.inPlaceSortByKeys)(jestOptions.moduleNameMapper);
|
|
92
92
|
}
|
|
93
93
|
function updateNpmScripts(scripts, options) {
|
|
@@ -119,10 +119,9 @@ function updateJestEndToEnd(options) {
|
|
|
119
119
|
if (!jestOptions.moduleNameMapper) {
|
|
120
120
|
jestOptions.moduleNameMapper = {};
|
|
121
121
|
}
|
|
122
|
-
const deepPackagePath = packageKey + '/(.*)';
|
|
123
122
|
const packageRoot = '<rootDir>/../' + distRoot;
|
|
124
|
-
|
|
125
|
-
jestOptions.moduleNameMapper
|
|
123
|
+
const newMapper = (0, utils_1.createModuleNameMapper)(packageKey, packageRoot);
|
|
124
|
+
Object.assign(jestOptions.moduleNameMapper, newMapper);
|
|
126
125
|
(0, utils_1.inPlaceSortByKeys)(jestOptions.moduleNameMapper);
|
|
127
126
|
});
|
|
128
127
|
};
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -23,4 +23,5 @@ __exportStar(require("./name.parser"), exports);
|
|
|
23
23
|
__exportStar(require("./path.solver"), exports);
|
|
24
24
|
__exportStar(require("./source-root.helpers"), exports);
|
|
25
25
|
__exportStar(require("./formatting"), exports);
|
|
26
|
+
__exportStar(require("./jest-module-mapper"), exports);
|
|
26
27
|
__exportStar(require("./object-sorting"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createModuleNameMapper(packageKey: string, packageRoot: string): Record<string, string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createModuleNameMapper = createModuleNameMapper;
|
|
4
|
+
function createModuleNameMapper(packageKey, packageRoot) {
|
|
5
|
+
const moduleNameMapper = {};
|
|
6
|
+
const packageKeyRegex = '^' + packageKey + '(|/.*)$';
|
|
7
|
+
moduleNameMapper[packageKeyRegex] = packageRoot + '/$1';
|
|
8
|
+
return moduleNameMapper;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/schematics",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.9",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -41,37 +41,37 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/nestjs/schematics#readme",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@angular-devkit/core": "19.2.
|
|
45
|
-
"@angular-devkit/schematics": "19.2.
|
|
46
|
-
"comment-json": "4.
|
|
44
|
+
"@angular-devkit/core": "19.2.17",
|
|
45
|
+
"@angular-devkit/schematics": "19.2.17",
|
|
46
|
+
"comment-json": "4.4.1",
|
|
47
47
|
"jsonc-parser": "3.3.1",
|
|
48
48
|
"pluralize": "8.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@commitlint/cli": "
|
|
52
|
-
"@commitlint/config-angular": "
|
|
51
|
+
"@commitlint/cli": "20.1.0",
|
|
52
|
+
"@commitlint/config-angular": "20.0.0",
|
|
53
53
|
"@eslint/eslintrc": "3.3.1",
|
|
54
|
-
"@eslint/js": "9.
|
|
54
|
+
"@eslint/js": "9.37.0",
|
|
55
55
|
"@types/jest": "30.0.0",
|
|
56
|
-
"@types/node": "22.
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
58
|
-
"@typescript-eslint/parser": "8.
|
|
56
|
+
"@types/node": "22.18.9",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "8.46.0",
|
|
58
|
+
"@typescript-eslint/parser": "8.46.0",
|
|
59
59
|
"cpx2": "8.0.0",
|
|
60
|
-
"eslint": "9.
|
|
60
|
+
"eslint": "9.37.0",
|
|
61
61
|
"eslint-config-prettier": "10.1.8",
|
|
62
62
|
"eslint-plugin-import": "2.32.0",
|
|
63
63
|
"eslint-plugin-prettier": "^5.2.1",
|
|
64
|
-
"globals": "16.
|
|
64
|
+
"globals": "16.4.0",
|
|
65
65
|
"gulp": "5.0.1",
|
|
66
66
|
"gulp-clean": "0.4.0",
|
|
67
67
|
"husky": "9.1.7",
|
|
68
|
-
"jest": "30.0
|
|
68
|
+
"jest": "30.2.0",
|
|
69
69
|
"nyc": "17.1.0",
|
|
70
70
|
"prettier": "3.6.2",
|
|
71
|
-
"release-it": "19.0.
|
|
72
|
-
"ts-jest": "29.4.
|
|
71
|
+
"release-it": "19.0.5",
|
|
72
|
+
"ts-jest": "29.4.4",
|
|
73
73
|
"ts-node": "10.9.2",
|
|
74
|
-
"typescript": "5.
|
|
74
|
+
"typescript": "5.9.3",
|
|
75
75
|
"typescript-eslint": "^8.15.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|