Closed stijnjanmaat closed 1 year ago
Messed the issue up, reopened it.
Hi @stijnjanmaat , Thank you for the issue.
This is something I'm actually working on. V3 will be removed in v1.1 of the package to align with the func
CLI tooling.
Since V4 was released to GA, the new func
CLI versions use the V4 by default, so the flag now is broken.
If you still need V3, please downgrade your func
CLI version to a lower version.
Or, use V4. It's much cooler. 😉
That's great! I am using V4, so looking forward for the new version!
Thanks for the great plugin! I just tried it out and found out it generates a functionApp v3 by default, while in my case it always generates a function v4. The
normalizedOptions
when runningnx g @nxazure/func:init someFuncApp
look like this:So v4 is false. When running
nx g @nxazure/func:new someFunc --project=someFuncApp --template="HTTP trigger"
Here v4 is true. I suppose it has to do with normalizeOptions function in both generators has different way of determining v4. In
new
it uses the isV4 function, whileinit
doesn't. Should init use isV4 as well?func --help
returns:I'm on "@azure/functions": "^4.0.0", "@nxazure/func": "1.0.20",