fix: convert kordoc service to ESM (kordoc requires ESM import)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-02 14:38:34 +09:00
parent 299fac3904
commit 2dfb05e653
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
{
"name": "kordoc-service",
"version": "1.0.0",
"type": "module",
"description": "HWP/HWPX/PDF 문서 파싱 마이크로서비스",
"main": "server.js",
"scripts": {

View File

@@ -2,10 +2,10 @@
* kordoc 마이크로서비스 — HWP/HWPX/PDF/텍스트 → Markdown 변환 API
*/
const express = require('express');
const fs = require('fs');
const path = require('path');
const { parse, detectFormat } = require('kordoc');
import express from 'express';
import fs from 'fs';
import path from 'path';
import { parse, detectFormat } from 'kordoc';
const app = express();
const PORT = 3100;