@nx/node 21.4.0-canary.20250729-c2d0ecf → 21.4.0-canary.20250730-8ef7d0e
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 +6 -6
- package/src/generators/application/lib/create-project.d.ts.map +1 -1
- package/src/generators/application/lib/create-project.js +4 -0
- package/src/generators/application/lib/create-targets.d.ts +5 -0
- package/src/generators/application/lib/create-targets.d.ts.map +1 -1
- package/src/generators/application/lib/create-targets.js +24 -0
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.20250730-8ef7d0e",
|
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,15 +32,15 @@
|
|
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.
|
35
|
+
"@nx/devkit": "21.4.0-canary.20250730-8ef7d0e",
|
36
|
+
"@nx/jest": "21.4.0-canary.20250730-8ef7d0e",
|
37
|
+
"@nx/js": "21.4.0-canary.20250730-8ef7d0e",
|
38
|
+
"@nx/eslint": "21.4.0-canary.20250730-8ef7d0e",
|
39
39
|
"tcp-port-used": "^1.0.2",
|
40
40
|
"kill-port": "^1.6.1"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"nx": "21.4.0-canary.
|
43
|
+
"nx": "21.4.0-canary.20250730-8ef7d0e"
|
44
44
|
},
|
45
45
|
"publishConfig": {
|
46
46
|
"access": "public"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/node/src/generators/application/lib/create-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,IAAI,EAEL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"create-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/node/src/generators/application/lib/create-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,IAAI,EAEL,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AASvD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,QAwD/D"}
|
@@ -28,6 +28,10 @@ function addProject(tree, options) {
|
|
28
28
|
project.targets.build = (0, create_targets_1.getNestWebpackBuildConfig)();
|
29
29
|
}
|
30
30
|
}
|
31
|
+
project.targets = {
|
32
|
+
...project.targets,
|
33
|
+
...(0, create_targets_1.getPruneTargets)('build'),
|
34
|
+
};
|
31
35
|
project.targets.serve = (0, create_targets_1.getServeConfig)(options);
|
32
36
|
const packageJson = {
|
33
37
|
name: options.importPath,
|
@@ -4,4 +4,9 @@ export declare function getWebpackBuildConfig(tree: Tree, project: ProjectConfig
|
|
4
4
|
export declare function getEsBuildConfig(tree: Tree, project: ProjectConfiguration, options: NormalizedSchema): TargetConfiguration;
|
5
5
|
export declare function getServeConfig(options: NormalizedSchema): TargetConfiguration;
|
6
6
|
export declare function getNestWebpackBuildConfig(): TargetConfiguration;
|
7
|
+
export declare function getPruneTargets(buildTarget: string): {
|
8
|
+
prune: TargetConfiguration;
|
9
|
+
'prune-lockfile': TargetConfiguration;
|
10
|
+
'copy-workspace-modules': TargetConfiguration;
|
11
|
+
};
|
7
12
|
//# sourceMappingURL=create-targets.d.ts.map
|
@@ -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,EACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,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,IAAI,mBAAmB,CAa/D"}
|
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,EACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,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,IAAI,mBAAmB,CAa/D;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG;IACpD,KAAK,EAAE,mBAAmB,CAAC;IAC3B,gBAAgB,EAAE,mBAAmB,CAAC;IACtC,wBAAwB,EAAE,mBAAmB,CAAC;CAC/C,CAsBA"}
|
@@ -4,6 +4,7 @@ exports.getWebpackBuildConfig = getWebpackBuildConfig;
|
|
4
4
|
exports.getEsBuildConfig = getEsBuildConfig;
|
5
5
|
exports.getServeConfig = getServeConfig;
|
6
6
|
exports.getNestWebpackBuildConfig = getNestWebpackBuildConfig;
|
7
|
+
exports.getPruneTargets = getPruneTargets;
|
7
8
|
const devkit_1 = require("@nx/devkit");
|
8
9
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
9
10
|
function getWebpackBuildConfig(tree, project, options) {
|
@@ -105,3 +106,26 @@ function getNestWebpackBuildConfig() {
|
|
105
106
|
},
|
106
107
|
};
|
107
108
|
}
|
109
|
+
function getPruneTargets(buildTarget) {
|
110
|
+
return {
|
111
|
+
'prune-lockfile': {
|
112
|
+
cache: true,
|
113
|
+
executor: '@nx/js:prune-lockfile',
|
114
|
+
options: {
|
115
|
+
buildTarget,
|
116
|
+
},
|
117
|
+
},
|
118
|
+
'copy-workspace-modules': {
|
119
|
+
cache: true,
|
120
|
+
executor: '@nx/js:copy-workspace-modules',
|
121
|
+
options: {
|
122
|
+
buildTarget,
|
123
|
+
},
|
124
|
+
},
|
125
|
+
prune: {
|
126
|
+
cache: true,
|
127
|
+
dependsOn: ['prune-lockfile', 'copy-workspace-modules'],
|
128
|
+
executor: 'nx:noop',
|
129
|
+
},
|
130
|
+
};
|
131
|
+
}
|