@atlashub/smartstack-cli 1.5.0 → 1.5.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
@@ -42130,19 +42130,29 @@ async function createBackendStructure(config, dryRun) {
42130
42130
  dryRun
42131
42131
  );
42132
42132
  }
42133
- logger.info("Installing SmartStack NuGet packages...");
42134
- const nugetPackages = [
42135
- { project: `${name}.Domain`, packages: ["SmartStack.Domain"] },
42136
- { project: `${name}.Application`, packages: ["SmartStack.Application"] },
42137
- { project: `${name}.Infrastructure`, packages: ["SmartStack.Infrastructure", "Microsoft.EntityFrameworkCore.Design"] },
42138
- { project: `${name}.Api`, packages: ["SmartStack.Api.Core"] }
42139
- ];
42133
+ logger.info("Installing NuGet packages...");
42140
42134
  const dbPackage = {
42141
42135
  sqlserver: "Microsoft.EntityFrameworkCore.SqlServer",
42142
42136
  postgresql: "Npgsql.EntityFrameworkCore.PostgreSQL",
42143
42137
  sqlite: "Microsoft.EntityFrameworkCore.Sqlite"
42144
42138
  }[config.database];
42145
- nugetPackages.find((p) => p.project === `${name}.Infrastructure`)?.packages.push(dbPackage);
42139
+ const nugetPackages = [
42140
+ {
42141
+ project: `${name}.Infrastructure`,
42142
+ packages: [
42143
+ "Microsoft.EntityFrameworkCore",
42144
+ "Microsoft.EntityFrameworkCore.Design",
42145
+ dbPackage
42146
+ ]
42147
+ },
42148
+ {
42149
+ project: `${name}.Api`,
42150
+ packages: [
42151
+ "Microsoft.AspNetCore.Authentication.JwtBearer",
42152
+ "Swashbuckle.AspNetCore"
42153
+ ]
42154
+ }
42155
+ ];
42146
42156
  for (const { project, packages } of nugetPackages) {
42147
42157
  for (const pkg2 of packages) {
42148
42158
  execCommand(`dotnet add "${(0, import_path4.join)(srcDir, project)}" package ${pkg2}`, void 0, dryRun);