{{={= =}=}}
{
  "extends": "@tsconfig/node{= majorNodeVersion =}/tsconfig.json",
  "compilerOptions": {
    // Overriding this until we implement more complete TypeScript support.
    "strict": false,
    "allowJs": true,

    // This property currently doesn't matter because we haven't been running
    // TSC on server code since https://github.com/wasp-lang/wasp/pull/1714.
    //
    // When we start running TSC again (after we fix all current errors and
    // make project references work for the TS config), then I believe the
    // correct configuration is "rootDir": "." (the project reference should
    // take care of the user code), but we should double-check.
    //
    // Before changing this property, ensure you're aware of the implications:
    //  - https://github.com/wasp-lang/wasp/pull/1584#discussion_r1404019301
    //  - https://github.com/wasp-lang/wasp/pull/1713/files#diff-58191eecd9cc55f71c73de89420df8b1866dce38ad35f4ef0f6f8874616eda77R32
    "rootDir": ".",
    // Enable source map for debugging
    "sourceMap": true,
    // We are using rollup and extensionless imports, our module and module
    // resolution reflect that.
    "module": "preserve",
    "moduleResolution": "bundler",
    // The remaining settings should match the extended nodeXY/tsconfig.json, but I kept
    // them here to be explicit.
    "esModuleInterop": true,
    "skipLibCheck": true,
    "outDir": "dist",
    "target": "es2022",
    "lib" : ["es2023"]
  },
  "include": [
    "src"
  ],
  "references": [
    { "path": "{= srcTsConfigPath =}" }
  ]
}
