From 8e4071a86269c869a3e1bf515ad2759e4aeb1efe Mon Sep 17 00:00:00 2001 From: Victor Ribeiro Boechat Date: Sun, 16 Jun 2024 14:29:21 -0300 Subject: [PATCH] feat: add missing module file --- package.json | 2 +- tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2db6494..aa308b7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "dist" ], "scripts": { - "build": "tsc", + "build": "tsc && cp ./dist/index.js ./dist/index.mjs", "test": "vitest" }, "devDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 38597f0..f4cae78 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,11 +6,11 @@ "declarationDir": "./dist", "emitDeclarationOnly": false, "target": "ESNext", - "module": "NodeNext", + "module": "ESNext", "strict": true, "esModuleInterop": true, "skipLibCheck": true, - "moduleResolution": "NodeNext" + "moduleResolution": "Bundler" }, "include": ["src"] }