// TS configuration for configs pre-building from TS sources.

{
  "extends": "./config/typescript/base.json",
  "include": [
    "config-ts-src",
  ],
  "compilerOptions": {
    "declaration": true,
    "rootDir": "config-ts-src",
    "outDir": "config",
    "paths": {
      "*": ["./src/shared/*", "./src/*", "./*"]
    },

    // TODO: Overriding the base config as configs are compiled into CommonJS
    // modules, and this flag leads to the following error in that case, if set:
    // ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
    // Perhaps, there is a better workaround?
    "verbatimModuleSyntax": false
  }
}
