import path from "path";
import { fsx } from "@simplysm/core-node";
/**
 * 로컬 디렉토리에 dist를 복사한다
 */
export async function publishToLocal(pkgPath, pkgName, targetPath, logger, dryRun) {
    const distPath = path.resolve(pkgPath, "dist");
    if (dryRun) {
        logger.info(`[DRY-RUN] [${pkgName}] 로컬 복사: ${distPath} → ${targetPath}`);
    }
    else {
        logger.debug(`[${pkgName}] 로컬 복사: ${distPath} → ${targetPath}`);
        await fsx.copy(distPath, targetPath);
    }
}
//# sourceMappingURL=local-publisher.js.map