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", "name": "kordoc-service",
"version": "1.0.0", "version": "1.0.0",
"type": "module",
"description": "HWP/HWPX/PDF 문서 파싱 마이크로서비스", "description": "HWP/HWPX/PDF 문서 파싱 마이크로서비스",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {

View File

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