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

View File

@@ -1,11 +1,14 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"declarationDir": "lib/types",
"target": "es2018",
"esModuleInterop": true,
"newLine": "LF",
"importHelpers": true,
"useUnknownInCatchVariables": true
"useUnknownInCatchVariables": true,
"moduleResolution": "Node16",
"module": "Node16"
},
"exclude": ["node_modules/"]
}