nx 19.7.0-canary.20240820-0853690 → 19.7.0-canary.20240821-2065033

Sign up to get free protection for your applications and to get access to all the features.
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({