hedia-team / .github

0 stars 0 forks source link

Update tsconfig.json in all services which uses OpenApi to include "src/**/*.json" #83

Closed aimeerivers closed 1 month ago

aimeerivers commented 2 months ago

To use latest open.api json from src folder, tsconfig.json should have "src/*/.json" in "include":

{
    "extends": "@hedia/tsconfig",
    "compilerOptions": {
        "rootDir": ".",
        "outDir": "dist"
    },
    "include": ["src", "test", "src/**/*.json"]
}

Note: was discovered in local setup while modifying openApi schemas, building open.api.json and running tests against new changes

Already implemented in:

aimeerivers commented 2 months ago
  1. this update can be automated.
  2. this is needed for when running tests in watch mode.
aimeerivers commented 1 month ago

this was done