Replies: 2 comments 1 reply
-
|
Hi @flo-sch unfortunately there's no good answer for this at the moment. However, we're actively working on a solution for this. Some changes were recently made on the host here: Azure/azure-functions-host#7606 and I've created this issue to track the Node.js changes here #480 We definitely plan to address allowing "function.json" in other folder structures. However, I've converted this "issue" into a "discussion" since we're still in the design phase and I was wondering if you had any other feedback. For example, we noticed each "apps/function1" folder has it's own tsconfig.json - can you give a little reasoning why that's necessary? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @ejizba, coming back here after quite some time, I forgot a bit about this thread. I tested the framework v4 (pull-request available there) and it seems to work fine:
I am looking forward a stable release of that v4 🚀 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I work with typescript and nx.dev workspace: a build tool allowing to easily lint, test, build and share source code inside a monorepo (using TS path mapping from a root
tsconfig.base.json).It works with a specific folder structure which makes it a bit hard to combine with Azure Functions:
As far as I know, Azure Functions Core Tools only parse one level of subfolders to find
function.jsonfiles (forfunc startorfunc azure functionapp publish <name>).Unfortunately, since nx works with an
appsmain subfolder, I cannot put thefunction.jsoninside each "app" and have to create a bunch subfolders in the root level to put thefunction.jsonfor each app, adding ascriptFileto reference the output ofnx serve.Is there any way to configure the core tools to look for
function.jsoninside./apps/*/function.jsoninstead?I have read in the issues here about
--prefixand--script-rootflags but I did not manage to make it work (and do not find those documented neither)Thanks a bunch in advance 🙏
Example repository here: https://github.com/flo-sch/nx-workspace-azure-function
Issue related to:
Beta Was this translation helpful? Give feedback.
All reactions