diff --git a/package.json b/package.json index ba30148..89899da 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "module", "main": "./dist/index.js", "scripts": { - "build": "tsc" + "build": "tsc -p tsconfig.build.json" }, "devDependencies": { "@types/bun": "latest", diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..220a454 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "nodenext", + "moduleResolution": "NodeNext", + "outDir": "dist", + "rootDir": "src", + + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, // ✅ important + + "strict": true, + "skipLibCheck": true, + "noEmit": false, + "declaration": false, + "sourceMap": false + }, + "include": ["src/index.ts"] +} diff --git a/tsconfig.json b/tsconfig.dev.json similarity index 100% rename from tsconfig.json rename to tsconfig.dev.json