@mandujs/cli 0.5.1 → 0.5.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/package.json +2 -2
- package/src/commands/dev.ts +14 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mandujs/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Agent-Native Fullstack Framework - 에이전트가 코딩해도 아키텍처가 무너지지 않는 개발 OS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/main.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@mandujs/core": "^0.5.
|
|
35
|
+
"@mandujs/core": "^0.5.2"
|
|
36
36
|
},
|
|
37
37
|
"engines": {
|
|
38
38
|
"bun": ">=1.0.0"
|
package/src/commands/dev.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
startDevBundler,
|
|
7
7
|
createHMRServer,
|
|
8
8
|
needsHydration,
|
|
9
|
+
loadEnv,
|
|
9
10
|
} from "@mandujs/core";
|
|
10
11
|
import { resolveFromCwd } from "../util/fs";
|
|
11
12
|
import path from "path";
|
|
@@ -21,6 +22,17 @@ export async function dev(options: DevOptions = {}): Promise<void> {
|
|
|
21
22
|
const rootDir = resolveFromCwd(".");
|
|
22
23
|
|
|
23
24
|
console.log(`🥟 Mandu Dev Server`);
|
|
25
|
+
|
|
26
|
+
// .env 파일 로드
|
|
27
|
+
const envResult = await loadEnv({
|
|
28
|
+
rootDir,
|
|
29
|
+
env: "development",
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
if (envResult.loaded.length > 0) {
|
|
33
|
+
console.log(`🔐 환경 변수 로드: ${envResult.loaded.join(", ")}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
24
36
|
console.log(`📄 Spec 파일: ${specPath}\n`);
|
|
25
37
|
|
|
26
38
|
const result = await loadManifest(specPath);
|
|
@@ -107,9 +119,10 @@ export async function dev(options: DevOptions = {}): Promise<void> {
|
|
|
107
119
|
// 메인 서버 시작
|
|
108
120
|
const server = startServer(manifest, {
|
|
109
121
|
port,
|
|
122
|
+
rootDir,
|
|
110
123
|
isDev: true,
|
|
111
124
|
hmrPort: hmrServer ? port : undefined,
|
|
112
|
-
bundleManifest: devBundler?.manifest,
|
|
125
|
+
bundleManifest: devBundler?.initialBuild.manifest,
|
|
113
126
|
});
|
|
114
127
|
|
|
115
128
|
// 정리 함수
|