diff --git a/package.json b/package.json index 90ab875..7d8a643 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "engines": { "node": ">=16.0.0" }, + "type": "commonjs", "main": "src/index.js", "scripts": { "build": "tsc -p .", diff --git a/tsconfig.json b/tsconfig.json index da4cc9c..58530a4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "module": "commonjs", - "moduleResolution": "node", + "module": "node16", + "moduleResolution": "node16", "lib": [ "esnext" ],