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:
@@ -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": {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user