@atlashub/smartstack-cli 1.9.0 → 1.10.1

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
@@ -42112,9 +42112,12 @@ function execCommand(command, cwd, dryRun = false) {
42112
42112
  }
42113
42113
  async function createBackendStructure(config, dryRun) {
42114
42114
  const { name } = config;
42115
- const srcDir = (0, import_path4.join)(name, "src");
42115
+ const baseDir = process.cwd();
42116
+ const projectDir = (0, import_path4.join)(baseDir, name);
42117
+ const srcDir = (0, import_path4.join)(projectDir, "src");
42118
+ const slnPath = (0, import_path4.join)(projectDir, `${name}.sln`);
42116
42119
  logger.info("Creating .NET solution structure...");
42117
- execCommand(`dotnet new sln -n "${name}" -o "${name}"`, void 0, dryRun);
42120
+ execCommand(`dotnet new sln -n "${name}" -o "${projectDir}"`, void 0, dryRun);
42118
42121
  const projects = [
42119
42122
  { proj: `${name}.Domain`, type: "classlib" },
42120
42123
  { proj: `${name}.Application`, type: "classlib" },
@@ -42122,8 +42125,9 @@ async function createBackendStructure(config, dryRun) {
42122
42125
  { proj: `${name}.Api`, type: "webapi" }
42123
42126
  ];
42124
42127
  for (const { proj, type } of projects) {
42125
- execCommand(`dotnet new ${type} -n "${proj}" -o "${(0, import_path4.join)(srcDir, proj)}"`, void 0, dryRun);
42126
- execCommand(`dotnet sln "${(0, import_path4.join)(name, `${name}.sln`)}" add "${(0, import_path4.join)(srcDir, proj)}"`, void 0, dryRun);
42128
+ const projDir = (0, import_path4.join)(srcDir, proj);
42129
+ execCommand(`dotnet new ${type} -n "${proj}" -o "${projDir}"`, void 0, dryRun);
42130
+ execCommand(`dotnet sln "${slnPath}" add "${projDir}"`, void 0, dryRun);
42127
42131
  }
42128
42132
  const refs = [
42129
42133
  { from: `${name}.Application`, to: `${name}.Domain` },