Converted package scripts and config to compile in both CJS and ESM

This commit is contained in:
Alexander Cerutti
2025-01-11 14:40:56 +01:00
parent d6351f15c1
commit 2bbea853e7
5 changed files with 60 additions and 10 deletions

11
tsconfig.esm.json Normal file
View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "lib/esm",
"inlineSourceMap": true,
"skipLibCheck": true,
"module": "Node16",
"moduleResolution": "Node16"
},
"include": ["src/**/*"]
}