nx 18.4.0-canary.20240418-e549ea2 → 19.0.0-beta.0
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 +12 -12
- package/src/command-line/add/add.js +3 -1
- package/src/command-line/add/command-object.d.ts +1 -0
- package/src/command-line/add/command-object.js +6 -1
- package/src/core/graph/main.js +1 -1
- package/src/native/index.d.ts +1 -4
- package/src/native/index.js +5 -6
- package/src/native/native-bindings.js +111 -133
- package/src/native/transform-objects.js +1 -0
- package/src/tasks-runner/task-orchestrator.js +47 -29
- package/src/utils/params.js +20 -17
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "
|
3
|
+
"version": "19.0.0-beta.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": {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"yargs-parser": "21.1.1",
|
67
67
|
"node-machine-id": "1.1.12",
|
68
68
|
"ora": "5.3.0",
|
69
|
-
"@nrwl/tao": "
|
69
|
+
"@nrwl/tao": "19.0.0-beta.0"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"@swc-node/register": "^1.8.0",
|
@@ -81,16 +81,16 @@
|
|
81
81
|
}
|
82
82
|
},
|
83
83
|
"optionalDependencies": {
|
84
|
-
"@nx/nx-darwin-x64": "
|
85
|
-
"@nx/nx-darwin-arm64": "
|
86
|
-
"@nx/nx-linux-x64-gnu": "
|
87
|
-
"@nx/nx-linux-x64-musl": "
|
88
|
-
"@nx/nx-win32-x64-msvc": "
|
89
|
-
"@nx/nx-linux-arm64-gnu": "
|
90
|
-
"@nx/nx-linux-arm64-musl": "
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "
|
92
|
-
"@nx/nx-win32-arm64-msvc": "
|
93
|
-
"@nx/nx-freebsd-x64": "
|
84
|
+
"@nx/nx-darwin-x64": "19.0.0-beta.0",
|
85
|
+
"@nx/nx-darwin-arm64": "19.0.0-beta.0",
|
86
|
+
"@nx/nx-linux-x64-gnu": "19.0.0-beta.0",
|
87
|
+
"@nx/nx-linux-x64-musl": "19.0.0-beta.0",
|
88
|
+
"@nx/nx-win32-x64-msvc": "19.0.0-beta.0",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "19.0.0-beta.0",
|
90
|
+
"@nx/nx-linux-arm64-musl": "19.0.0-beta.0",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "19.0.0-beta.0",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "19.0.0-beta.0",
|
93
|
+
"@nx/nx-freebsd-x64": "19.0.0-beta.0"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -101,7 +101,9 @@ async function initializePlugin(pkgName, options) {
|
|
101
101
|
process.env.NX_ADD_PLUGINS !== 'false' &&
|
102
102
|
coreNxPlugins.includes(pkgName);
|
103
103
|
}
|
104
|
-
await (0, child_process_2.runNxAsync)(`g ${pkgName}:${initGenerator} --keepExistingVersions${updatePackageScripts ? ' --updatePackageScripts' : ''}
|
104
|
+
await (0, child_process_2.runNxAsync)(`g ${pkgName}:${initGenerator} --keepExistingVersions${updatePackageScripts ? ' --updatePackageScripts' : ''}${options.__overrides_unparsed__.length
|
105
|
+
? ' ' + options.__overrides_unparsed__.join(' ')
|
106
|
+
: ''}`, {
|
105
107
|
silent: !options.verbose,
|
106
108
|
});
|
107
109
|
}
|
@@ -1,10 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.yargsAddCommand = void 0;
|
4
|
+
const shared_options_1 = require("../yargs-utils/shared-options");
|
4
5
|
exports.yargsAddCommand = {
|
5
6
|
command: 'add <packageSpecifier>',
|
6
7
|
describe: 'Install a plugin and initialize it.',
|
7
8
|
builder: (yargs) => yargs
|
9
|
+
.parserConfiguration({
|
10
|
+
'strip-dashed': true,
|
11
|
+
'unknown-options-as-args': true,
|
12
|
+
})
|
8
13
|
.positional('packageSpecifier', {
|
9
14
|
type: 'string',
|
10
15
|
description: 'The package name and optional version (e.g. `@nx/react` or `@nx/react@latest`) to install and initialize. If the version is not specified it will install the same version as the `nx` package for Nx core plugins or the latest version for other packages',
|
@@ -20,5 +25,5 @@ exports.yargsAddCommand = {
|
|
20
25
|
.example('$0 add @nx/react', 'Install the latest version of the `@nx/react` package and run its `@nx/react:init` generator')
|
21
26
|
.example('$0 add non-core-nx-plugin', 'Install the latest version of the `non-core-nx-plugin` package and run its `non-core-nx-plugin:init` generator if available')
|
22
27
|
.example('$0 add @nx/react@17.0.0', 'Install version `17.0.0` of the `@nx/react` package and run its `@nx/react:init` generator'),
|
23
|
-
handler: (args) => Promise.resolve().then(() => require('./add')).then((m) => m.addHandler(args)),
|
28
|
+
handler: (args) => Promise.resolve().then(() => require('./add')).then((m) => m.addHandler((0, shared_options_1.withOverrides)(args))),
|
24
29
|
};
|