nx 19.5.0-canary.20240716-34da542 → 19.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +13 -13
- package/plugins/package-json.js +2 -2
- package/src/command-line/run/command-object.js +6 -0
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/generators/utils/project-configuration.js +3 -3
- package/src/native/nx.wasi.cjs +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/{package-json-workspaces → package-json}/create-nodes.d.ts +2 -2
- package/src/plugins/{package-json-workspaces → package-json}/create-nodes.js +33 -11
- package/src/plugins/package-json/index.d.ts +2 -0
- package/src/plugins/{package-json-workspaces → package-json}/index.js +1 -1
- package/src/plugins/project-json/build-nodes/project-json.js +12 -9
- package/src/project-graph/file-utils.js +3 -3
- package/src/project-graph/plugins/internal-api.js +4 -5
- package/src/project-graph/plugins/loader.js +3 -1
- package/src/project-graph/plugins/utils.js +3 -1
- package/src/project-graph/utils/project-configuration-utils.js +3 -4
- package/src/utils/nx-plugin.deprecated.js +1 -1
- package/src/plugins/package-json-workspaces/index.d.ts +0 -2
- package/src/plugins/project-json/build-nodes/package-json-next-to-project-json.d.ts +0 -3
- package/src/plugins/project-json/build-nodes/package-json-next-to-project-json.js +0 -57
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.5.0
|
3
|
+
"version": "19.5.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"yargs-parser": "21.1.1",
|
72
72
|
"node-machine-id": "1.1.12",
|
73
73
|
"ora": "5.3.0",
|
74
|
-
"@nrwl/tao": "19.5.0
|
74
|
+
"@nrwl/tao": "19.5.0"
|
75
75
|
},
|
76
76
|
"peerDependencies": {
|
77
77
|
"@swc-node/register": "^1.8.0",
|
@@ -86,16 +86,16 @@
|
|
86
86
|
}
|
87
87
|
},
|
88
88
|
"optionalDependencies": {
|
89
|
-
"@nx/nx-darwin-x64": "19.5.0
|
90
|
-
"@nx/nx-darwin-arm64": "19.5.0
|
91
|
-
"@nx/nx-linux-x64-gnu": "19.5.0
|
92
|
-
"@nx/nx-linux-x64-musl": "19.5.0
|
93
|
-
"@nx/nx-win32-x64-msvc": "19.5.0
|
94
|
-
"@nx/nx-linux-arm64-gnu": "19.5.0
|
95
|
-
"@nx/nx-linux-arm64-musl": "19.5.0
|
96
|
-
"@nx/nx-linux-arm-gnueabihf": "19.5.0
|
97
|
-
"@nx/nx-win32-arm64-msvc": "19.5.0
|
98
|
-
"@nx/nx-freebsd-x64": "19.5.0
|
89
|
+
"@nx/nx-darwin-x64": "19.5.0",
|
90
|
+
"@nx/nx-darwin-arm64": "19.5.0",
|
91
|
+
"@nx/nx-linux-x64-gnu": "19.5.0",
|
92
|
+
"@nx/nx-linux-x64-musl": "19.5.0",
|
93
|
+
"@nx/nx-win32-x64-msvc": "19.5.0",
|
94
|
+
"@nx/nx-linux-arm64-gnu": "19.5.0",
|
95
|
+
"@nx/nx-linux-arm64-musl": "19.5.0",
|
96
|
+
"@nx/nx-linux-arm-gnueabihf": "19.5.0",
|
97
|
+
"@nx/nx-win32-arm64-msvc": "19.5.0",
|
98
|
+
"@nx/nx-freebsd-x64": "19.5.0"
|
99
99
|
},
|
100
100
|
"nx-migrations": {
|
101
101
|
"migrations": "./migrations.json",
|
@@ -174,7 +174,7 @@
|
|
174
174
|
"binaryName": "nx",
|
175
175
|
"packageName": "@nx/nx",
|
176
176
|
"wasm": {
|
177
|
-
"initialMemory":
|
177
|
+
"initialMemory": 1024,
|
178
178
|
"maximumMemory": 32768
|
179
179
|
},
|
180
180
|
"targets": [
|
package/plugins/package-json.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const workspace_root_1 = require("../src/utils/workspace-root");
|
4
|
-
const
|
4
|
+
const package_json_1 = require("../src/plugins/package-json");
|
5
5
|
const plugin = {
|
6
6
|
name: 'nx-all-package-jsons-plugin',
|
7
7
|
createNodes: [
|
8
8
|
'*/**/package.json',
|
9
|
-
(f) => (0,
|
9
|
+
(f) => (0, package_json_1.createNodeFromPackageJson)(f, workspace_root_1.workspaceRoot),
|
10
10
|
],
|
11
11
|
};
|
12
12
|
module.exports = plugin;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.yargsNxInfixCommand = exports.yargsRunCommand = void 0;
|
4
|
+
const yargs_1 = require("yargs");
|
4
5
|
const shared_options_1 = require("../yargs-utils/shared-options");
|
5
6
|
const params_1 = require("../../utils/params");
|
6
7
|
exports.yargsRunCommand = {
|
@@ -29,6 +30,11 @@ exports.yargsNxInfixCommand = {
|
|
29
30
|
describe: 'Run a target for a project',
|
30
31
|
handler: async (args) => {
|
31
32
|
const exitCode = await (0, params_1.handleErrors)(args.verbose ?? process.env.NX_VERBOSE_LOGGING === 'true', async () => {
|
33
|
+
// Yargs parses <target> as 'undefined' if running just 'nx'
|
34
|
+
if (!args.target || args.target === 'undefined') {
|
35
|
+
(0, yargs_1.showHelp)();
|
36
|
+
process.exit(1);
|
37
|
+
}
|
32
38
|
return (await Promise.resolve().then(() => require('./run-one'))).runOne(process.cwd(), (0, shared_options_1.withOverrides)(args, 0));
|
33
39
|
});
|
34
40
|
process.exit(exitCode);
|