@wavemaker/angular-codegen 11.15.5-rc.261 → 11.15.5-rc.263

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.
@@ -82,9 +82,9 @@ const processAngularAppPackage = async (sourcePath, targetPath, packageName, isO
82
82
  // Install dependencies
83
83
  const installPath = isOptimized ? sourcePath : targetPath;
84
84
  try {
85
- if (global.buildConfigObj.runInspection && !isOptimized && fs.existsSync(path.join(global.buildConfigObj.appSrc, "build-src/package-override.json")) && fs.existsSync(path.join(installPath, 'package.json'))) {
85
+ if (!isOptimized && fs.existsSync(path.join(global.buildConfigObj.appSrc, "build-src/package-override.json")) && fs.existsSync(path.join(installPath, 'package.json'))) {
86
86
  let packageJson = JSON.parse(fs.readFileSync(path.join(installPath, 'package.json'), 'utf8'));
87
- packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson);
87
+ packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson, global.buildConfigObj.runInspection);
88
88
  fs.writeFileSync(path.join(installPath, 'package.json'), JSON.stringify(packageJson, null, 4));
89
89
  console.log("Successfully updated generated-app package.json with package-override.json");
90
90
  }