AlexPshul / nxazure

MIT License
16 stars 7 forks source link

Use parent level tsconfig.build.json #32

Closed jerryjren closed 7 months ago

jerryjren commented 8 months ago

Hi there,

Is it possible to use a project level tsconfig.build.json?

This is how I can config tsconfig.json inside function app project. In the project level tsconfig.base.json, I have all the other ts configurations.

{
  "extends": "../../../tsconfig.base.json",
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "sourceMap": true,
    "strict": true
  }
}

Snipped from project.json

    "build": {
      "executor": "@nxazure/func:build"
    }

With this configuration, it is still trying to find tsconfig.build.json within my project when I build it. Any suggestions?

Error output

image

I'm using version 1.1.0

AlexPshul commented 8 months ago

Last time I checked, the azure function tools didn't work well with out-of-scope files, so I had to insert the local build file just for the sake of building it. I can check again if this is still a limitation or not.

Meanwhile, can you please explain why this is needed? Maybe it's something that can be solved in a different manner?

AlexPshul commented 7 months ago

Closing due to inactivity. If still needed, please comment again.