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"] }