@atlashub/smartstack-cli 1.29.0 → 1.30.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 +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115853,6 +115853,17 @@ EndGlobal
|
|
|
115853
115853
|
}
|
|
115854
115854
|
}
|
|
115855
115855
|
}
|
|
115856
|
+
if (!dryRun) {
|
|
115857
|
+
for (const { proj } of projects) {
|
|
115858
|
+
const csprojPath = (0, import_path4.join)(srcDir, proj, `${proj}.csproj`);
|
|
115859
|
+
if (await import_fs_extra3.default.pathExists(csprojPath)) {
|
|
115860
|
+
let content = await import_fs_extra3.default.readFile(csprojPath, "utf-8");
|
|
115861
|
+
content = content.replace(/\s*<TargetFramework>.*<\/TargetFramework>\s*/g, "\n ");
|
|
115862
|
+
await import_fs_extra3.default.writeFile(csprojPath, content);
|
|
115863
|
+
}
|
|
115864
|
+
}
|
|
115865
|
+
logger.info("Configured projects to inherit TargetFramework from Directory.Build.props");
|
|
115866
|
+
}
|
|
115856
115867
|
const refs = [
|
|
115857
115868
|
{ from: `${projectName}.Application`, to: `${projectName}.Domain` },
|
|
115858
115869
|
{ from: `${projectName}.Infrastructure`, to: `${projectName}.Domain` },
|
|
@@ -115972,9 +115983,10 @@ async function createConfigFiles(config, dryRun) {
|
|
|
115972
115983
|
logger.info("[DRY RUN] Would create configuration files");
|
|
115973
115984
|
return;
|
|
115974
115985
|
}
|
|
115986
|
+
const targetFramework = config.preview ? "net10.0" : "net9.0";
|
|
115975
115987
|
const buildProps = `<Project>
|
|
115976
115988
|
<PropertyGroup>
|
|
115977
|
-
<TargetFramework
|
|
115989
|
+
<TargetFramework>${targetFramework}</TargetFramework>
|
|
115978
115990
|
<Nullable>enable</Nullable>
|
|
115979
115991
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
115980
115992
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
@@ -115982,6 +115994,7 @@ async function createConfigFiles(config, dryRun) {
|
|
|
115982
115994
|
</Project>
|
|
115983
115995
|
`;
|
|
115984
115996
|
await import_fs_extra3.default.writeFile((0, import_path4.join)(projectDir, "Directory.Build.props"), buildProps);
|
|
115997
|
+
logger.info(`Target framework: ${source_default.cyan(targetFramework)}${config.preview ? " (preview)" : ""}`);
|
|
115985
115998
|
const connectionString = `Server=(local);Database=${projectName};Integrated Security=true;TrustServerCertificate=true;Connection Timeout=60;Pooling=true;Min Pool Size=0;Max Pool Size=50;Load Balance Timeout=30`;
|
|
115986
115999
|
const appSettings = {
|
|
115987
116000
|
ConnectionStrings: {
|