M5: Windows 에서 앱 빌드 경로 오류 수정 (URL.pathname → import.meta.dirname)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user