nx 19.7.0-canary.20240817-b91d788 → 19.7.0-canary.20240821-2065033
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/package.json +12 -12
- package/src/command-line/import/utils/prepare-source-repo.js +2 -2
- package/src/core/graph/main.js +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/package-json/create-package-json.d.ts +1 -0
- package/src/plugins/js/package-json/create-package-json.js +1 -1
- package/src/utils/git-utils.js +1 -1
Binary file
|
@@ -18,6 +18,7 @@ export declare function createPackageJson(projectName: string, graph: ProjectGra
|
|
18
18
|
root?: string;
|
19
19
|
isProduction?: boolean;
|
20
20
|
helperDependencies?: string[];
|
21
|
+
skipPackageManager?: boolean;
|
21
22
|
}, fileMap?: ProjectFileMap): PackageJson;
|
22
23
|
export declare function findProjectsNpmDependencies(projectNode: ProjectGraphProjectNode, graph: ProjectGraph, target: string, rootPackageJson: PackageJson, options: {
|
23
24
|
helperDependencies?: string[];
|
@@ -108,7 +108,7 @@ function createPackageJson(projectName, graph, options = {}, fileMap = null) {
|
|
108
108
|
packageJson.dependencies &&= (0, object_sort_1.sortObjectByKeys)(packageJson.dependencies);
|
109
109
|
packageJson.peerDependencies &&= (0, object_sort_1.sortObjectByKeys)(packageJson.peerDependencies);
|
110
110
|
packageJson.peerDependenciesMeta &&= (0, object_sort_1.sortObjectByKeys)(packageJson.peerDependenciesMeta);
|
111
|
-
if (rootPackageJson.packageManager) {
|
111
|
+
if (rootPackageJson.packageManager && !options.skipPackageManager) {
|
112
112
|
if (packageJson.packageManager &&
|
113
113
|
packageJson.packageManager !== rootPackageJson.packageManager) {
|
114
114
|
output_1.output.warn({
|
package/src/utils/git-utils.js
CHANGED
@@ -83,7 +83,7 @@ class GitRepository {
|
|
83
83
|
return this.execAsync(`git checkout ${opts.new ? '-b ' : ' '}${branch}${opts.base ? ' ' + opts.base : ''}`);
|
84
84
|
}
|
85
85
|
async move(path, destination) {
|
86
|
-
return this.execAsync(`git mv ${path} ${destination}`);
|
86
|
+
return this.execAsync(`git mv "${path}" "${destination}"`);
|
87
87
|
}
|
88
88
|
async push(ref, remoteName) {
|
89
89
|
return this.execAsync(`git push -u -f ${remoteName} ${ref}`);
|