@atlashub/smartstack-cli 3.35.0 → 3.36.0

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/dist/index.js CHANGED
@@ -116791,13 +116791,14 @@ EndGlobal
116791
116791
  }
116792
116792
  ];
116793
116793
  const smartstackVersion = config.smartStackVersion || null;
116794
- const prereleaseFlag = config.preview ? " --prerelease" : "";
116795
116794
  for (const { project, packages } of nugetPackages) {
116796
116795
  for (const pkg2 of packages) {
116797
116796
  if (pkg2 === "SmartStack" && smartstackVersion) {
116798
116797
  execCommand(`dotnet add "${(0, import_path7.join)(srcDir, project)}" package ${pkg2} --version ${smartstackVersion}`, void 0, dryRun);
116798
+ } else if (pkg2 === "SmartStack" && config.preview) {
116799
+ execCommand(`dotnet add "${(0, import_path7.join)(srcDir, project)}" package ${pkg2} --prerelease`, void 0, dryRun);
116799
116800
  } else {
116800
- execCommand(`dotnet add "${(0, import_path7.join)(srcDir, project)}" package ${pkg2}${prereleaseFlag}`, void 0, dryRun);
116801
+ execCommand(`dotnet add "${(0, import_path7.join)(srcDir, project)}" package ${pkg2}`, void 0, dryRun);
116801
116802
  }
116802
116803
  }
116803
116804
  }