nx 18.1.0-canary.20240215-d5e1451 → 18.1.0-canary.20240216-27cf308
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/migrate/command-object.js +2 -2
- package/src/command-line/migrate/migrate.js +4 -2
- package/src/core/graph/3rdpartylicenses.txt +0 -51
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/core/graph/runtime.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/utils/params.d.ts +2 -2
- package/src/utils/params.js +7 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "18.1.0-canary.
|
3
|
+
"version": "18.1.0-canary.20240216-27cf308",
|
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": "18.1.0-canary.
|
69
|
+
"@nrwl/tao": "18.1.0-canary.20240216-27cf308"
|
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": "18.1.0-canary.
|
85
|
-
"@nx/nx-darwin-arm64": "18.1.0-canary.
|
86
|
-
"@nx/nx-linux-x64-gnu": "18.1.0-canary.
|
87
|
-
"@nx/nx-linux-x64-musl": "18.1.0-canary.
|
88
|
-
"@nx/nx-win32-x64-msvc": "18.1.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "18.1.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-musl": "18.1.0-canary.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "18.1.0-canary.
|
93
|
-
"@nx/nx-freebsd-x64": "18.1.0-canary.
|
84
|
+
"@nx/nx-darwin-x64": "18.1.0-canary.20240216-27cf308",
|
85
|
+
"@nx/nx-darwin-arm64": "18.1.0-canary.20240216-27cf308",
|
86
|
+
"@nx/nx-linux-x64-gnu": "18.1.0-canary.20240216-27cf308",
|
87
|
+
"@nx/nx-linux-x64-musl": "18.1.0-canary.20240216-27cf308",
|
88
|
+
"@nx/nx-win32-x64-msvc": "18.1.0-canary.20240216-27cf308",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "18.1.0-canary.20240216-27cf308",
|
90
|
+
"@nx/nx-linux-arm64-musl": "18.1.0-canary.20240216-27cf308",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "18.1.0-canary.20240216-27cf308",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "18.1.0-canary.20240216-27cf308",
|
93
|
+
"@nx/nx-freebsd-x64": "18.1.0-canary.20240216-27cf308"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -108,11 +108,11 @@ function runMigration() {
|
|
108
108
|
}
|
109
109
|
}
|
110
110
|
function nxCliPath() {
|
111
|
+
const version = process.env.NX_MIGRATE_CLI_VERSION || 'latest';
|
111
112
|
try {
|
112
113
|
const packageManager = (0, package_manager_1.getPackageManagerCommand)();
|
113
114
|
const { dirSync } = require('tmp');
|
114
115
|
const tmpDir = dirSync().name;
|
115
|
-
const version = process.env.NX_MIGRATE_USE_NEXT === 'true' ? 'next' : 'latest';
|
116
116
|
(0, fileutils_1.writeJsonFile)(path.join(tmpDir, 'package.json'), {
|
117
117
|
dependencies: {
|
118
118
|
nx: version,
|
@@ -129,7 +129,7 @@ function nxCliPath() {
|
|
129
129
|
return path.join(tmpDir, `node_modules`, '.bin', 'nx');
|
130
130
|
}
|
131
131
|
catch (e) {
|
132
|
-
console.error(
|
132
|
+
console.error(`Failed to install the ${version} version of the migration script. Using the current version.`);
|
133
133
|
if (process.env.NX_VERBOSE_LOGGING) {
|
134
134
|
console.error(e);
|
135
135
|
}
|
@@ -430,13 +430,15 @@ async function parseTargetPackageAndVersion(args) {
|
|
430
430
|
else {
|
431
431
|
if (args === 'latest' ||
|
432
432
|
args === 'next' ||
|
433
|
+
args === 'canary' ||
|
433
434
|
(0, semver_1.valid)(args) ||
|
434
435
|
args.match(/^\d+(?:\.\d+)?(?:\.\d+)?$/)) {
|
435
436
|
// Passing `nx` here may seem wrong, but nx and @nrwl/workspace are synced in version.
|
436
437
|
// We could duplicate the ternary below, but its not necessary since they are equivalent
|
437
438
|
// on the registry
|
438
439
|
const targetVersion = await normalizeVersionWithTagCheck('nx', args);
|
439
|
-
const targetPackage = !['latest', 'next'].includes(args) &&
|
440
|
+
const targetPackage = !['latest', 'next', 'canary'].includes(args) &&
|
441
|
+
(0, semver_1.lt)(targetVersion, '14.0.0-beta.0')
|
440
442
|
? '@nrwl/workspace'
|
441
443
|
: 'nx';
|
442
444
|
return {
|
@@ -717,7 +719,7 @@ async function updateInstallationDetails(root, updatedPackages) {
|
|
717
719
|
}
|
718
720
|
async function isMigratingToNewMajor(from, to) {
|
719
721
|
from = normalizeVersion(from);
|
720
|
-
to = ['latest', 'next'].includes(to) ? to : normalizeVersion(to);
|
722
|
+
to = ['latest', 'next', 'canary'].includes(to) ? to : normalizeVersion(to);
|
721
723
|
if (!(0, semver_1.valid)(from)) {
|
722
724
|
from = await (0, package_manager_1.resolvePackageVersionUsingRegistry)('nx', from);
|
723
725
|
}
|
@@ -704,57 +704,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
704
704
|
SOFTWARE.
|
705
705
|
|
706
706
|
|
707
|
-
regenerator-runtime
|
708
|
-
MIT
|
709
|
-
MIT License
|
710
|
-
|
711
|
-
Copyright (c) 2014-present, Facebook, Inc.
|
712
|
-
|
713
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
714
|
-
of this software and associated documentation files (the "Software"), to deal
|
715
|
-
in the Software without restriction, including without limitation the rights
|
716
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
717
|
-
copies of the Software, and to permit persons to whom the Software is
|
718
|
-
furnished to do so, subject to the following conditions:
|
719
|
-
|
720
|
-
The above copyright notice and this permission notice shall be included in all
|
721
|
-
copies or substantial portions of the Software.
|
722
|
-
|
723
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
724
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
725
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
726
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
727
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
728
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
729
|
-
SOFTWARE.
|
730
|
-
|
731
|
-
|
732
|
-
tabbable
|
733
|
-
MIT
|
734
|
-
The MIT License (MIT)
|
735
|
-
|
736
|
-
Copyright (c) 2015 David Clark
|
737
|
-
|
738
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
739
|
-
of this software and associated documentation files (the "Software"), to deal
|
740
|
-
in the Software without restriction, including without limitation the rights
|
741
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
742
|
-
copies of the Software, and to permit persons to whom the Software is
|
743
|
-
furnished to do so, subject to the following conditions:
|
744
|
-
|
745
|
-
The above copyright notice and this permission notice shall be included in all
|
746
|
-
copies or substantial portions of the Software.
|
747
|
-
|
748
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
749
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
750
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
751
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
752
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
753
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
754
|
-
SOFTWARE.
|
755
|
-
|
756
|
-
|
757
|
-
|
758
707
|
toggle-selection
|
759
708
|
MIT
|
760
709
|
|