gencow 0.1.45 → 0.1.46
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/bin/gencow.mjs +6 -1
- package/package.json +1 -1
- package/server/index.js +5 -3
- package/server/index.js.map +2 -2
package/bin/gencow.mjs
CHANGED
|
@@ -1118,7 +1118,12 @@ ${hasPrompt ? `
|
|
|
1118
1118
|
cwd: process.cwd(),
|
|
1119
1119
|
stdio: "inherit",
|
|
1120
1120
|
shell: true,
|
|
1121
|
-
env:
|
|
1121
|
+
env: {
|
|
1122
|
+
...buildEnv(config),
|
|
1123
|
+
// 서버에게 최신 대시보드 경로를 명시적으로 전달
|
|
1124
|
+
// node_modules 내 구 버전 대신 CLI가 복사한 최신 파일 사용 보장
|
|
1125
|
+
GENCOW_DASHBOARD_DIR: dashboardDest,
|
|
1126
|
+
},
|
|
1122
1127
|
});
|
|
1123
1128
|
}
|
|
1124
1129
|
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -72277,15 +72277,17 @@ async function main() {
|
|
|
72277
72277
|
let dashboardEmbedded = false;
|
|
72278
72278
|
if (!IS_BAAS) {
|
|
72279
72279
|
const dashboardSearchPaths = [
|
|
72280
|
+
// CLI가 명시적으로 경로를 지정한 경우 최우선 (항상 최신 보장)
|
|
72281
|
+
...process.env.GENCOW_DASHBOARD_DIR ? [process.env.GENCOW_DASHBOARD_DIR] : [],
|
|
72280
72282
|
// Vite output (dist/)
|
|
72281
72283
|
resolve4(import.meta.dirname, "../../../apps/dashboard/dist"),
|
|
72282
72284
|
resolve4(process.cwd(), "apps/dashboard/dist"),
|
|
72283
|
-
//
|
|
72284
|
-
resolve4(process.cwd(), "node_modules/gencow/dashboard"),
|
|
72285
|
-
// bundled with server package
|
|
72285
|
+
// bundled with server package (import.meta.dirname 기준)
|
|
72286
72286
|
resolve4(import.meta.dirname, "../dashboard"),
|
|
72287
72287
|
// standalone: .gencow/dashboard/ (CLI copies dashboard here alongside server.js)
|
|
72288
72288
|
resolve4(import.meta.dirname, "dashboard"),
|
|
72289
|
+
// standalone: user's node_modules/gencow/dashboard/ (fallback)
|
|
72290
|
+
resolve4(process.cwd(), "node_modules/gencow/dashboard"),
|
|
72289
72291
|
// functions dir sibling (standalone project: gencow/ next to dashboard/)
|
|
72290
72292
|
...process.env.GENCOW_FUNCTIONS ? [resolve4(process.env.GENCOW_FUNCTIONS, "../node_modules/gencow/dashboard")] : []
|
|
72291
72293
|
];
|