@yunsoft/yuncms 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -9,3 +9,9 @@ npx yuncms start
9
9
  ```
10
10
 
11
11
  YunCMS requires Node.js 24 LTS and MySQL for V1. See the [project repository](https://github.com/Yunsoft-Software/yuncms) for setup, deployment and API documentation.
12
+
13
+ ## Project status
14
+
15
+ YunCMS is developed and maintained by [Yunsoft Software](https://yunsoft.com). It is under active development, so interfaces and behavior may change between releases. Test upgrades and keep verified backups before production use.
16
+
17
+ Use YunCMS at your own risk. This package is provided under the [MIT License](https://github.com/Yunsoft-Software/yuncms/blob/16-08-2026/LICENSE) without warranty.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yunsoft/yuncms",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Command-line setup and runtime launcher for YunCMS.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "test": "node --test"
31
31
  },
32
32
  "dependencies": {
33
- "@yunsoft/yuncms-api": "0.1.1",
34
- "@yunsoft/yuncms-core": "0.1.1"
33
+ "@yunsoft/yuncms-api": "0.1.2",
34
+ "@yunsoft/yuncms-core": "0.1.2"
35
35
  }
36
36
  }
@@ -2,6 +2,7 @@ import { existsSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
 
4
4
  import {
5
+ DEFAULT_SERVER_PORT,
5
6
  bootstrapDatabase,
6
7
  closeDatabasePool,
7
8
  createDatabasePool,
@@ -14,18 +15,20 @@ import {
14
15
  import { writeEnvFile } from './env-file.js';
15
16
  import { createInteractivePrompts } from './prompts.js';
16
17
 
17
- async function collectEnvironment(prompts) {
18
+ export async function collectEnvironment(prompts) {
18
19
  const DB_HOST = await prompts.line('MySQL host', { defaultValue: '127.0.0.1' });
19
20
  const DB_PORT = await prompts.line('MySQL port', { defaultValue: '3306' });
20
21
  const DB_DATABASE = await prompts.line('MySQL database', { defaultValue: 'yuncms' });
21
22
  const DB_USER = await prompts.line('MySQL user', { defaultValue: 'yuncms' });
22
23
  const DB_PASSWORD = await prompts.secret('MySQL password');
23
24
  const DB_SSL = await prompts.line('Use MySQL TLS (true/false)', { defaultValue: 'false' });
25
+ const studioUrl = `http://localhost:${DEFAULT_SERVER_PORT}`;
24
26
 
25
27
  return {
26
28
  HOST: '127.0.0.1',
27
- PORT: '8055',
28
- STUDIO_ORIGIN: 'http://localhost:5173',
29
+ PORT: String(DEFAULT_SERVER_PORT),
30
+ STUDIO_ORIGIN: studioUrl,
31
+ AUTH_PUBLIC_URL: studioUrl,
29
32
  DB_HOST,
30
33
  DB_PORT,
31
34
  DB_DATABASE,
@@ -109,4 +112,4 @@ export async function runInitCommand({
109
112
  } finally {
110
113
  await closeDatabasePool(pool);
111
114
  }
112
- }
115
+ }