nx 19.8.0-canary.20240911-2a3307c → 19.8.0-canary.20240912-b6140d4
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",
|
3
|
-
"version": "19.8.0-canary.
|
3
|
+
"version": "19.8.0-canary.20240912-b6140d4",
|
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.8.0-canary.
|
74
|
+
"@nrwl/tao": "19.8.0-canary.20240912-b6140d4"
|
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.8.0-canary.
|
90
|
-
"@nx/nx-darwin-arm64": "19.8.0-canary.
|
91
|
-
"@nx/nx-linux-x64-gnu": "19.8.0-canary.
|
92
|
-
"@nx/nx-linux-x64-musl": "19.8.0-canary.
|
93
|
-
"@nx/nx-win32-x64-msvc": "19.8.0-canary.
|
94
|
-
"@nx/nx-linux-arm64-gnu": "19.8.0-canary.
|
95
|
-
"@nx/nx-linux-arm64-musl": "19.8.0-canary.
|
96
|
-
"@nx/nx-linux-arm-gnueabihf": "19.8.0-canary.
|
97
|
-
"@nx/nx-win32-arm64-msvc": "19.8.0-canary.
|
98
|
-
"@nx/nx-freebsd-x64": "19.8.0-canary.
|
89
|
+
"@nx/nx-darwin-x64": "19.8.0-canary.20240912-b6140d4",
|
90
|
+
"@nx/nx-darwin-arm64": "19.8.0-canary.20240912-b6140d4",
|
91
|
+
"@nx/nx-linux-x64-gnu": "19.8.0-canary.20240912-b6140d4",
|
92
|
+
"@nx/nx-linux-x64-musl": "19.8.0-canary.20240912-b6140d4",
|
93
|
+
"@nx/nx-win32-x64-msvc": "19.8.0-canary.20240912-b6140d4",
|
94
|
+
"@nx/nx-linux-arm64-gnu": "19.8.0-canary.20240912-b6140d4",
|
95
|
+
"@nx/nx-linux-arm64-musl": "19.8.0-canary.20240912-b6140d4",
|
96
|
+
"@nx/nx-linux-arm-gnueabihf": "19.8.0-canary.20240912-b6140d4",
|
97
|
+
"@nx/nx-win32-arm64-msvc": "19.8.0-canary.20240912-b6140d4",
|
98
|
+
"@nx/nx-freebsd-x64": "19.8.0-canary.20240912-b6140d4"
|
99
99
|
},
|
100
100
|
"nx-migrations": {
|
101
101
|
"migrations": "./migrations.json",
|
@@ -116,6 +116,9 @@ async function importHandler(options) {
|
|
116
116
|
])).destination;
|
117
117
|
}
|
118
118
|
const absSource = (0, path_1.join)(sourceTempRepoPath, source);
|
119
|
+
if ((0, path_1.isAbsolute)(destination)) {
|
120
|
+
throw new Error(`The destination directory must be a relative path in this repository.`);
|
121
|
+
}
|
119
122
|
const absDestination = (0, path_1.join)(process.cwd(), destination);
|
120
123
|
const destinationGitClient = new git_utils_1.GitRepository(process.cwd());
|
121
124
|
await assertDestinationEmpty(destinationGitClient, absDestination);
|
@@ -137,6 +140,7 @@ async function importHandler(options) {
|
|
137
140
|
}
|
138
141
|
const packageManager = (0, package_manager_1.detectPackageManager)(workspace_root_1.workspaceRoot);
|
139
142
|
const originalPackageWorkspaces = await (0, needs_install_1.getPackagesInPackageManagerWorkspace)(packageManager);
|
143
|
+
const sourceIsNxWorkspace = (0, node_fs_1.existsSync)((0, path_1.join)(sourceGitClient.root, 'nx.json'));
|
140
144
|
const relativeDestination = (0, path_1.relative)(destinationGitClient.root, absDestination);
|
141
145
|
await (0, prepare_source_repo_1.prepareSourceRepo)(sourceGitClient, ref, source, relativeDestination, tempImportBranch, sourceRepository);
|
142
146
|
await createTemporaryRemote(destinationGitClient, (0, path_1.join)(sourceTempRepoPath, '.git'), importRemoteName);
|
@@ -201,6 +205,18 @@ async function importHandler(options) {
|
|
201
205
|
});
|
202
206
|
}
|
203
207
|
await warnOnMissingWorkspacesEntry(packageManager, pmc, relativeDestination);
|
208
|
+
if (source != destination) {
|
209
|
+
output_1.output.warn({
|
210
|
+
title: `Check configuration files`,
|
211
|
+
bodyLines: [
|
212
|
+
`The source directory (${source}) and destination directory (${destination}) are different.`,
|
213
|
+
`You may need to update configuration files to match the directory in this repository.`,
|
214
|
+
sourceIsNxWorkspace
|
215
|
+
? `For example, path options in project.json such as "main", "tsConfig", and "outputPath" need to be updated.`
|
216
|
+
: `For example, relative paths in tsconfig.json and other tooling configuration files may need to be updated.`,
|
217
|
+
],
|
218
|
+
});
|
219
|
+
}
|
204
220
|
// When only a subdirectory is imported, there might be devDependencies in the root package.json file
|
205
221
|
// that needs to be ported over as well.
|
206
222
|
if (ref) {
|
Binary file
|