@nx/node 21.4.0-canary.20250813-811d184 → 21.4.0-canary.20250815-18ba315
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/node",
|
3
|
-
"version": "21.4.0-canary.
|
3
|
+
"version": "21.4.0-canary.20250815-18ba315",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
|
6
6
|
"repository": {
|
@@ -32,16 +32,16 @@
|
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
34
|
"tslib": "^2.3.0",
|
35
|
-
"@nx/devkit": "21.4.0-canary.
|
36
|
-
"@nx/jest": "21.4.0-canary.
|
37
|
-
"@nx/js": "21.4.0-canary.
|
38
|
-
"@nx/eslint": "21.4.0-canary.
|
39
|
-
"@nx/docker": "21.4.0-canary.
|
35
|
+
"@nx/devkit": "21.4.0-canary.20250815-18ba315",
|
36
|
+
"@nx/jest": "21.4.0-canary.20250815-18ba315",
|
37
|
+
"@nx/js": "21.4.0-canary.20250815-18ba315",
|
38
|
+
"@nx/eslint": "21.4.0-canary.20250815-18ba315",
|
39
|
+
"@nx/docker": "21.4.0-canary.20250815-18ba315",
|
40
40
|
"tcp-port-used": "^1.0.2",
|
41
41
|
"kill-port": "^1.6.1"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
|
-
"nx": "21.4.0-canary.
|
44
|
+
"nx": "21.4.0-canary.20250815-18ba315"
|
45
45
|
},
|
46
46
|
"publishConfig": {
|
47
47
|
"access": "public"
|
@@ -25,7 +25,7 @@ function addProject(tree, options, frameworkDependencies) {
|
|
25
25
|
else if (options.isNest) {
|
26
26
|
// If we are using Nest that has the webpack plugin we need to override the
|
27
27
|
// build target so that node-env can be set to production or development so the serve target can be run in development mode
|
28
|
-
project.targets.build = (0, create_targets_1.getNestWebpackBuildConfig)();
|
28
|
+
project.targets.build = (0, create_targets_1.getNestWebpackBuildConfig)(project);
|
29
29
|
}
|
30
30
|
}
|
31
31
|
project.targets = {
|
@@ -3,7 +3,7 @@ import { NormalizedSchema } from './normalized-schema';
|
|
3
3
|
export declare function getWebpackBuildConfig(tree: Tree, project: ProjectConfiguration, options: NormalizedSchema): TargetConfiguration;
|
4
4
|
export declare function getEsBuildConfig(tree: Tree, project: ProjectConfiguration, options: NormalizedSchema): TargetConfiguration;
|
5
5
|
export declare function getServeConfig(options: NormalizedSchema): TargetConfiguration;
|
6
|
-
export declare function getNestWebpackBuildConfig(): TargetConfiguration;
|
6
|
+
export declare function getNestWebpackBuildConfig(project: ProjectConfiguration): TargetConfiguration;
|
7
7
|
export declare function getPruneTargets(buildTarget: string, outputPath: string): {
|
8
8
|
prune: TargetConfiguration;
|
9
9
|
'prune-lockfile': TargetConfiguration;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-targets.d.ts","sourceRoot":"","sources":["../../../../../../../packages/node/src/generators/application/lib/create-targets.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACpB,IAAI,EACJ,mBAAmB,EAEpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,gBAAgB,GACxB,mBAAmB,CA+BrB;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,gBAAgB,GACxB,mBAAmB,CAqCrB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,mBAAmB,CAuB7E;AAED,wBAAgB,yBAAyB,
|
1
|
+
{"version":3,"file":"create-targets.d.ts","sourceRoot":"","sources":["../../../../../../../packages/node/src/generators/application/lib/create-targets.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,oBAAoB,EACpB,IAAI,EACJ,mBAAmB,EAEpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,gBAAgB,GACxB,mBAAmB,CA+BrB;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,gBAAgB,GACxB,mBAAmB,CAqCrB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,mBAAmB,CAuB7E;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,oBAAoB,GAC5B,mBAAmB,CAcrB;AAED,wBAAgB,eAAe,CAC7B,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,GACjB;IACD,KAAK,EAAE,mBAAmB,CAAC;IAC3B,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,wBAAwB,EAAE,mBAAmB,CAAC;CAC/C,CAgCA"}
|
@@ -93,12 +93,13 @@ function getServeConfig(options) {
|
|
93
93
|
},
|
94
94
|
};
|
95
95
|
}
|
96
|
-
function getNestWebpackBuildConfig() {
|
96
|
+
function getNestWebpackBuildConfig(project) {
|
97
97
|
return {
|
98
98
|
executor: 'nx:run-commands',
|
99
99
|
options: {
|
100
100
|
command: 'webpack-cli build',
|
101
101
|
args: ['--node-env=production'],
|
102
|
+
cwd: project.root,
|
102
103
|
},
|
103
104
|
configurations: {
|
104
105
|
development: {
|