gencow 0.1.2 → 0.1.3
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 +8 -0
- package/package.json +1 -1
- package/server/index.js +2 -0
- package/server/index.js.map +2 -2
package/bin/gencow.mjs
CHANGED
|
@@ -959,6 +959,14 @@ ${hasPrompt ? `
|
|
|
959
959
|
try { unlinkSync(localServer); } catch { /* 처음 실행이면 파일 없음 */ }
|
|
960
960
|
copyFileSync(bundledServer, localServer);
|
|
961
961
|
|
|
962
|
+
// 대시보드 static 파일도 .gencow/dashboard/ 에 복사
|
|
963
|
+
const cliRoot = resolve(findServerRoot(), "..");
|
|
964
|
+
const dashboardSource = resolve(cliRoot, "dashboard");
|
|
965
|
+
const dashboardDest = resolve(process.cwd(), ".gencow", "dashboard");
|
|
966
|
+
if (existsSync(dashboardSource) && !existsSync(dashboardDest)) {
|
|
967
|
+
cpSync(dashboardSource, dashboardDest, { recursive: true });
|
|
968
|
+
}
|
|
969
|
+
|
|
962
970
|
proc = spawn("bun", ["--watch", localServer], {
|
|
963
971
|
cwd: process.cwd(),
|
|
964
972
|
stdio: "inherit",
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -12846,6 +12846,8 @@ async function main() {
|
|
|
12846
12846
|
resolve3(process.cwd(), "node_modules/gencow/dashboard"),
|
|
12847
12847
|
// bundled with server package
|
|
12848
12848
|
resolve3(import.meta.dirname, "../dashboard"),
|
|
12849
|
+
// standalone: .gencow/dashboard/ (CLI copies dashboard here alongside server.js)
|
|
12850
|
+
resolve3(import.meta.dirname, "dashboard"),
|
|
12849
12851
|
// functions dir sibling (standalone project: gencow/ next to dashboard/)
|
|
12850
12852
|
...process.env.GENCOW_FUNCTIONS ? [resolve3(process.env.GENCOW_FUNCTIONS, "../node_modules/gencow/dashboard")] : []
|
|
12851
12853
|
];
|