nestjs / azure-func-http

Azure Functions HTTP adapter for Nest framework (node.js) 🌥
https://nestjs.com/
MIT License
151 stars 42 forks source link

MonoRepo Support #927

Open whatthehanan opened 2 years ago

whatthehanan commented 2 years ago

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

if in a nestjs monorepo I run the nest add @nestjs/azure-func-http it asks for destination project and creates a azure function for it but if you run in twice it overrides the existing azure function to use the new project

Expected behavior

running nest add @nestjs/azure-func-http and selecting different projects should create multiple azure functions

Minimal reproduction of the problem with instructions

nest new demo
cd demo
nest generate app models
nest add @nestjs/azure-func-http (select demo project)
nest add @nestjs/azure-func-http (select models project)

What is the motivation / use case for changing the behavior?

I'd like to use one repo for multiple azure functions

Environment


Nest version: 8.2.8


For Tooling issues:
- Node version: 16  
- Platform: Mac 

Others:

kamilmysliwiec commented 1 year ago

Would you like to create a PR for this feature?