From 4bfaf1b23c4ad9c768499960c8472428177859b6bae426e7182a5cfaeed81406 Mon Sep 17 00:00:00 2001 From: evilchili Date: Mon, 10 Aug 2026 12:20:38 -0700 Subject: [PATCH] tweaking compiler options --- package.json | 2 ++ tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 53f294d..e3904bc 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,8 @@ "name": "hopdown", "version": "1.0.0", "description": "Configurable HTML <=> Markdown converter for WYSIWYG editors.", + "main": "dist/js/index.js", + "module": "dist/esm/index.js", "files": [ "dist/lib/" ], diff --git a/tsconfig.json b/tsconfig.json index 502a1ba..8ec9bb2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "strict": true, "target": "ES2025", - "module": "CommonJS", + "module": "ES2022", "esModuleInterop": true, "types": ["node"], "forceConsistentCasingInFileNames": true,