@nx/express 21.0.0-canary.20250205-45d5140 → 21.0.0-canary.20250416-caa26a7
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/express",
|
3
|
-
"version": "21.0.0-canary.
|
3
|
+
"version": "21.0.0-canary.20250416-caa26a7",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for Express contains executors and generators for allowing your workspace to create powerful Express Node applications and APIs.",
|
6
6
|
"repository": {
|
@@ -31,8 +31,9 @@
|
|
31
31
|
"migrations": "./migrations.json"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@nx/devkit": "21.0.0-canary.
|
35
|
-
"@nx/
|
34
|
+
"@nx/devkit": "21.0.0-canary.20250416-caa26a7",
|
35
|
+
"@nx/js": "21.0.0-canary.20250416-caa26a7",
|
36
|
+
"@nx/node": "21.0.0-canary.20250416-caa26a7",
|
36
37
|
"tslib": "^2.3.0"
|
37
38
|
},
|
38
39
|
"peerDependencies": {
|
@@ -4,6 +4,7 @@ exports.applicationGenerator = applicationGenerator;
|
|
4
4
|
exports.applicationGeneratorInternal = applicationGeneratorInternal;
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
7
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
7
8
|
const node_1 = require("@nx/node");
|
8
9
|
const versions_1 = require("@nx/node/src/utils/versions");
|
9
10
|
const path_1 = require("path");
|
@@ -45,6 +46,7 @@ server.on('error', console.error);
|
|
45
46
|
async function applicationGenerator(tree, schema) {
|
46
47
|
return await applicationGeneratorInternal(tree, {
|
47
48
|
addPlugin: false,
|
49
|
+
useProjectJson: true,
|
48
50
|
...schema,
|
49
51
|
});
|
50
52
|
}
|
@@ -72,7 +74,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
72
74
|
}
|
73
75
|
exports.default = applicationGenerator;
|
74
76
|
async function normalizeOptions(host, options) {
|
75
|
-
await (0, project_name_and_root_utils_1.
|
77
|
+
await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
|
76
78
|
const { projectName: appProjectName, projectRoot: appProjectRoot } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
|
77
79
|
name: options.name,
|
78
80
|
projectType: 'application',
|
@@ -82,10 +84,12 @@ async function normalizeOptions(host, options) {
|
|
82
84
|
const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
|
83
85
|
nxJson.useInferencePlugins !== false;
|
84
86
|
options.addPlugin ??= addPlugin;
|
87
|
+
const useProjectJson = options.useProjectJson ?? !(0, ts_solution_setup_1.isUsingTsSolutionSetup)(host);
|
85
88
|
return {
|
86
89
|
...options,
|
87
90
|
appProjectName,
|
88
91
|
appProjectRoot,
|
92
|
+
useProjectJson,
|
89
93
|
};
|
90
94
|
}
|
91
95
|
function ensureDependencies(tree) {
|
@@ -73,6 +73,10 @@
|
|
73
73
|
"type": "boolean",
|
74
74
|
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
75
75
|
"default": false
|
76
|
+
},
|
77
|
+
"useProjectJson": {
|
78
|
+
"type": "boolean",
|
79
|
+
"description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."
|
76
80
|
}
|
77
81
|
},
|
78
82
|
"required": ["directory"]
|