{
    "compilerOptions": {
        // Enable latest features
        "lib": ["ESNext"],
        "target": "ESNext",
        "module": "ESNext",
        "moduleDetection": "force",
        "allowJs": true,

        "outDir": "lib",

        // Bundler mode
        "moduleResolution": "bundler",
        // "allowImportingTsExtensions": true,
        "verbatimModuleSyntax": true,
        // "noEmit": true,
        "declaration": true,
        "sourceMap": true,

        // Best practices
        "strict": true,
        "skipLibCheck": true,
        "noFallthroughCasesInSwitch": true,

        // Some stricter flags (disabled by default)
        "noUnusedLocals": false,
        "noUnusedParameters": false,
        "noPropertyAccessFromIndexSignature": false,

        "types": [
            "bun-types" // add Bun global
        ]
    },
    "include": ["src"]
}
