M5: Windows 에서 앱 빌드 경로 오류 수정 (URL.pathname → import.meta.dirname)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-15 03:50:10 +09:00
parent ae2af637ad
commit 8f44f22a8b

View File

@@ -3,7 +3,7 @@ import { build } from 'esbuild';
import fs from 'node:fs';
import path from 'node:path';
const root = path.dirname(new URL(import.meta.url).pathname);
const root = import.meta.dirname; // Windows 에서 URL.pathname 은 /C:/... 라 쓰면 안 된다
const shared = path.join(root, '..', 'packages', 'shared', 'src', 'index.ts');
fs.writeFileSync(
path.join(root, 'src/core/db/schema.ts'),