Deploy does not work for custom config file
When deploying using https://github.com/flowaccount/nx-plugins/tree/master/libs/nx-serverless I get the following error:
Could not find any serverless service definition file.
I think this error is related to the fix that was done here: https://github.com/serverless/serverless/pull/7131 in that this error was thrown by code here which looks very similar to the before code in the linked fix. See https://github.com/serverless/enterprise-plugin/blob/master/lib/deployment/getServerlessFilePath.js#L15
The parameters being passed to the deploy command look like this:
'--config apps/assets-api/serverless.yml',
'--location dist/apps/assets-api',
'--waitUntilTargets ',
'--stage dev',
'--function .serverless',
'--updateConfig false',
'--root /home/james/project/apps/assets-api']
Calling code is here: https://github.com/flowaccount/nx-plugins/blob/master/libs/nx-serverless/src/builders/deploy/deploy.impl.ts#L90
@jamesgroat if report is influenced by nx-serverless it should be reported there. If you feel that serverless shares the bug, please fill bug report at its repository (reproducible test case should not involve nx-serverless and any other plugins)