diff --git a/app/build.mjs b/app/build.mjs index 35296a7..6ab64d7 100644 --- a/app/build.mjs +++ b/app/build.mjs @@ -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'),