@atlashub/smartstack-cli 1.25.0 → 1.26.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 +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -115837,9 +115837,10 @@ EndGlobal
|
|
|
115837
115837
|
]
|
|
115838
115838
|
}
|
|
115839
115839
|
];
|
|
115840
|
+
const prereleaseFlag = config.preview ? " --prerelease" : "";
|
|
115840
115841
|
for (const { project, packages } of nugetPackages) {
|
|
115841
115842
|
for (const pkg2 of packages) {
|
|
115842
|
-
execCommand(`dotnet add "${(0, import_path4.join)(srcDir, project)}" package ${pkg2}`, void 0, dryRun);
|
|
115843
|
+
execCommand(`dotnet add "${(0, import_path4.join)(srcDir, project)}" package ${pkg2}${prereleaseFlag}`, void 0, dryRun);
|
|
115843
115844
|
}
|
|
115844
115845
|
}
|
|
115845
115846
|
if (!dryRun) {
|
|
@@ -116320,6 +116321,7 @@ async function createFrontendStructure(config, dryRun) {
|
|
|
116320
116321
|
await import_fs_extra3.default.ensureDir((0, import_path4.join)(webDir, "src", "types"));
|
|
116321
116322
|
await import_fs_extra3.default.ensureDir((0, import_path4.join)(webDir, "src", "i18n"));
|
|
116322
116323
|
await import_fs_extra3.default.ensureDir((0, import_path4.join)(webDir, "public"));
|
|
116324
|
+
const smartstackNpmTag = config.preview ? "next" : "latest";
|
|
116323
116325
|
const packageJson = {
|
|
116324
116326
|
name: `${projectName.toLowerCase()}-web`,
|
|
116325
116327
|
private: true,
|
|
@@ -116334,7 +116336,7 @@ async function createFrontendStructure(config, dryRun) {
|
|
|
116334
116336
|
preview: "vite preview"
|
|
116335
116337
|
},
|
|
116336
116338
|
dependencies: {
|
|
116337
|
-
"@atlashub/smartstack":
|
|
116339
|
+
"@atlashub/smartstack": smartstackNpmTag,
|
|
116338
116340
|
"@microsoft/signalr": "latest",
|
|
116339
116341
|
"@tailwindcss/vite": "latest",
|
|
116340
116342
|
axios: "latest",
|
|
@@ -116653,7 +116655,7 @@ async function initializeGit(config, dryRun) {
|
|
|
116653
116655
|
execCommand("git add .", projectDir, dryRun);
|
|
116654
116656
|
execCommand('git commit -m "chore: initial SmartStack project setup"', projectDir, dryRun);
|
|
116655
116657
|
}
|
|
116656
|
-
var initCommand = new Command("init").description("Initialize a new SmartStack project").argument("<name>", "Project name").option("--dry-run", "Show what would be created without actually creating").option("-y, --yes", "Skip prompts and use defaults").option("--skip-mcp-check", "Skip MCP servers verification").option("--multi-tenant", "Enable multi-tenant mode").option("--b2c", "Enable B2C (user tenant management)").action(async (name, options) => {
|
|
116658
|
+
var initCommand = new Command("init").description("Initialize a new SmartStack project").argument("<name>", "Project name").option("--dry-run", "Show what would be created without actually creating").option("-y, --yes", "Skip prompts and use defaults").option("--skip-mcp-check", "Skip MCP servers verification").option("--multi-tenant", "Enable multi-tenant mode").option("--b2c", "Enable B2C (user tenant management)").option("--preview", "Use preview/prerelease versions (NuGet --prerelease + npm @next)").action(async (name, options) => {
|
|
116657
116659
|
logger.header("SmartStack Project Initialization");
|
|
116658
116660
|
if (!options.skipMcpCheck) {
|
|
116659
116661
|
logger.info("Checking MCP servers...");
|
|
@@ -116732,6 +116734,7 @@ var initCommand = new Command("init").description("Initialize a new SmartStack p
|
|
|
116732
116734
|
name,
|
|
116733
116735
|
nameLower: name.toLowerCase(),
|
|
116734
116736
|
database: "sqlserver",
|
|
116737
|
+
preview: options.preview ?? false,
|
|
116735
116738
|
multiTenant: {
|
|
116736
116739
|
enabled: options.multiTenant ?? true,
|
|
116737
116740
|
enableB2C: options.b2c ?? true,
|
|
@@ -116774,6 +116777,7 @@ var initCommand = new Command("init").description("Initialize a new SmartStack p
|
|
|
116774
116777
|
name,
|
|
116775
116778
|
nameLower: name.toLowerCase(),
|
|
116776
116779
|
database: "sqlserver",
|
|
116780
|
+
preview: options.preview ?? false,
|
|
116777
116781
|
multiTenant: {
|
|
116778
116782
|
enabled: answers.multiTenantEnabled ?? true,
|
|
116779
116783
|
enableB2C: answers.enableB2C ?? true,
|
|
@@ -116790,6 +116794,7 @@ var initCommand = new Command("init").description("Initialize a new SmartStack p
|
|
|
116790
116794
|
console.log();
|
|
116791
116795
|
logger.info(`Project: ${source_default.cyan(config.name)}`);
|
|
116792
116796
|
logger.info(`Database: ${source_default.cyan("SQL Server")}`);
|
|
116797
|
+
logger.info(`Preview mode: ${config.preview ? source_default.yellow("Enabled (prerelease)") : source_default.gray("Disabled (stable)")}`);
|
|
116793
116798
|
logger.info(`Multi-Tenant: ${config.multiTenant.enabled ? source_default.green("Enabled") : source_default.gray("Disabled")}`);
|
|
116794
116799
|
if (config.multiTenant.enabled) {
|
|
116795
116800
|
logger.info(` B2C (User Tenants): ${config.multiTenant.enableB2C ? source_default.green("Enabled") : source_default.gray("Disabled")}`);
|