@semiont/cli 0.2.40 → 0.2.41

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/cli.mjs CHANGED
@@ -14051,7 +14051,7 @@ var init_backend_service = __esm({
14051
14051
  }
14052
14052
  }
14053
14053
  async collectProcessLogs() {
14054
- const logPath = path3.join(this.typedConfig.projectRoot || this.projectRoot, "apps/backend/logs/app.log");
14054
+ const logPath = path3.join(this.typedConfig.projectRoot || this.projectRoot, "backend", "logs", "app.log");
14055
14055
  const recent = [];
14056
14056
  const errorLogs = [];
14057
14057
  try {
@@ -18125,6 +18125,17 @@ var init_backend_provision = __esm({
18125
18125
  printSuccess("Created .env with configuration from environment file");
18126
18126
  }
18127
18127
  const prismaSchemaPath = path18.join(backendSourceDir, "prisma", "schema.prisma");
18128
+ if (!paths.fromNpmPackage) {
18129
+ const staleEnv = path18.join(backendSourceDir, ".env");
18130
+ if (fs22.existsSync(staleEnv)) {
18131
+ const backupPath = `${staleEnv}.backup.${Date.now()}`;
18132
+ fs22.renameSync(staleEnv, backupPath);
18133
+ if (!service.quiet) {
18134
+ printWarning(`Moved stale ${staleEnv} to ${path18.basename(backupPath)}`);
18135
+ printInfo(`Runtime .env is now at: ${envFile}`);
18136
+ }
18137
+ }
18138
+ }
18128
18139
  if (paths.fromNpmPackage) {
18129
18140
  if (!service.quiet) {
18130
18141
  printInfo("Using pre-built npm package \u2014 skipping install, build, and prisma generate");
@@ -18514,6 +18525,17 @@ NEXT_PUBLIC_OAUTH_ALLOWED_DOMAINS=${oauthAllowedDomains.join(",")}
18514
18525
  printSuccess(`Generated secure NEXTAUTH_SECRET (32 bytes)`);
18515
18526
  }
18516
18527
  }
18528
+ if (!paths.fromNpmPackage) {
18529
+ const staleEnvLocal = path19.join(frontendSourceDir, ".env.local");
18530
+ if (fs23.existsSync(staleEnvLocal)) {
18531
+ const backupPath = `${staleEnvLocal}.backup.${Date.now()}`;
18532
+ fs23.renameSync(staleEnvLocal, backupPath);
18533
+ if (!service.quiet) {
18534
+ printWarning(`Moved stale ${staleEnvLocal} to ${path19.basename(backupPath)}`);
18535
+ printInfo(`Runtime .env.local is now at: ${envFile}`);
18536
+ }
18537
+ }
18538
+ }
18517
18539
  if (paths.fromNpmPackage) {
18518
18540
  if (!service.quiet) {
18519
18541
  printInfo("Using pre-built npm package \u2014 skipping install, build, and workspace steps");
@@ -42410,7 +42432,7 @@ var require_package = __commonJS({
42410
42432
  "package.json"(exports, module) {
42411
42433
  module.exports = {
42412
42434
  name: "@semiont/cli",
42413
- version: "0.2.40",
42435
+ version: "0.2.41",
42414
42436
  description: "Semiont CLI - Unified environment management tool",
42415
42437
  _comment: "AWS SDK dependencies (@aws-sdk/*) are only used by platforms/aws",
42416
42438
  type: "module",
@@ -42474,8 +42496,8 @@ var require_package = __commonJS({
42474
42496
  "@aws-sdk/client-secrets-manager": "^3.600.0",
42475
42497
  "@aws-sdk/client-sts": "^3.859.0",
42476
42498
  "@aws-sdk/client-wafv2": "^3.859.0",
42477
- "@semiont/api-client": "^0.2.40",
42478
- "@semiont/core": "^0.2.40",
42499
+ "@semiont/api-client": "^0.2.41",
42500
+ "@semiont/core": "^0.2.41",
42479
42501
  "@testcontainers/postgresql": "^11.5.1",
42480
42502
  arg: "^5.0.2",
42481
42503
  argon2: "^0.43.0",
@@ -7,8 +7,8 @@
7
7
  "imageTagStrategy": "mutable"
8
8
  },
9
9
  "site": {
10
- "domain": "localhost:3000",
11
- "oauthAllowedDomains": ["example.com", "localhost:3000"]
10
+ "domain": "localhost:8080",
11
+ "oauthAllowedDomains": ["example.com", "localhost:8080"]
12
12
  },
13
13
  "env": {
14
14
  "NODE_ENV": "development"
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "command": "npm run dev",
23
23
  "port": 4000,
24
- "publicURL": "http://localhost:4000",
25
- "corsOrigin": "http://localhost:3000"
24
+ "publicURL": "http://localhost:8080",
25
+ "corsOrigin": "http://localhost:8080"
26
26
  },
27
27
  "frontend": {
28
28
  "platform": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "command": "npm run dev",
32
32
  "port": 3000,
33
- "publicURL": "http://localhost:3000",
33
+ "publicURL": "http://localhost:8080",
34
34
  "siteName": "Semiont"
35
35
  },
36
36
  "database": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semiont/cli",
3
- "version": "0.2.40",
3
+ "version": "0.2.41",
4
4
  "description": "Semiont CLI - Unified environment management tool",
5
5
  "_comment": "AWS SDK dependencies (@aws-sdk/*) are only used by platforms/aws",
6
6
  "type": "module",
@@ -64,8 +64,8 @@
64
64
  "@aws-sdk/client-secrets-manager": "^3.600.0",
65
65
  "@aws-sdk/client-sts": "^3.859.0",
66
66
  "@aws-sdk/client-wafv2": "^3.859.0",
67
- "@semiont/api-client": "0.2.40",
68
- "@semiont/core": "0.2.40",
67
+ "@semiont/api-client": "0.2.41",
68
+ "@semiont/core": "0.2.41",
69
69
  "@testcontainers/postgresql": "^11.5.1",
70
70
  "arg": "^5.0.2",
71
71
  "argon2": "^0.43.0",