@nx/nest 21.6.3 → 21.6.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@nestjs/schematics": "^11.0.0",
|
|
35
|
-
"@nx/devkit": "21.6.
|
|
36
|
-
"@nx/js": "21.6.
|
|
37
|
-
"@nx/eslint": "21.6.
|
|
38
|
-
"@nx/node": "21.6.
|
|
35
|
+
"@nx/devkit": "21.6.4",
|
|
36
|
+
"@nx/js": "21.6.4",
|
|
37
|
+
"@nx/eslint": "21.6.4",
|
|
38
|
+
"@nx/node": "21.6.4",
|
|
39
39
|
"tslib": "^2.3.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/nest/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAW1D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAG5D,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../../../packages/nest/src/generators/application/application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAW1D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAG5D,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,2BAA2B,GACtC,OAAO,CAAC,iBAAiB,CAAC,CAgC5B;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -27,7 +27,12 @@ async function applicationGeneratorInternal(tree, rawOptions) {
|
|
|
27
27
|
(0, lib_1.createFiles)(tree, options);
|
|
28
28
|
(0, lib_1.updateTsConfig)(tree, options);
|
|
29
29
|
if (!options.skipPackageJson) {
|
|
30
|
+
// Install dependencies to root package.json
|
|
30
31
|
tasks.push((0, ensure_dependencies_1.ensureDependencies)(tree));
|
|
32
|
+
// Install dependencies to project's package.json (for PM Workspaces)
|
|
33
|
+
if (tree.exists(`${options.appProjectRoot}/package.json`)) {
|
|
34
|
+
tasks.push((0, ensure_dependencies_1.ensureDependencies)(tree, options.appProjectRoot));
|
|
35
|
+
}
|
|
31
36
|
}
|
|
32
37
|
if (!options.skipFormat) {
|
|
33
38
|
await (0, devkit_1.formatFiles)(tree);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
|
-
export declare function ensureDependencies(tree: Tree): GeneratorCallback;
|
|
2
|
+
export declare function ensureDependencies(tree: Tree, projectRoot?: string): GeneratorCallback;
|
|
3
3
|
//# sourceMappingURL=ensure-dependencies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-dependencies.d.ts","sourceRoot":"","sources":["../../../../../packages/nest/src/utils/ensure-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAS1D,wBAAgB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ensure-dependencies.d.ts","sourceRoot":"","sources":["../../../../../packages/nest/src/utils/ensure-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAS1D,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,EACV,WAAW,CAAC,EAAE,MAAM,GACnB,iBAAiB,CAoBnB"}
|
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ensureDependencies = ensureDependencies;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("./versions");
|
|
6
|
-
function ensureDependencies(tree) {
|
|
6
|
+
function ensureDependencies(tree, projectRoot) {
|
|
7
|
+
const packageJsonPath = projectRoot
|
|
8
|
+
? (0, devkit_1.joinPathFragments)(projectRoot, 'package.json')
|
|
9
|
+
: 'package.json';
|
|
7
10
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
8
11
|
'@nestjs/common': versions_1.nestJsVersion,
|
|
9
12
|
'@nestjs/core': versions_1.nestJsVersion,
|
|
@@ -13,5 +16,5 @@ function ensureDependencies(tree) {
|
|
|
13
16
|
tslib: versions_1.tsLibVersion,
|
|
14
17
|
}, {
|
|
15
18
|
'@nestjs/testing': versions_1.nestJsVersion,
|
|
16
|
-
});
|
|
19
|
+
}, packageJsonPath);
|
|
17
20
|
}
|