The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
2.31k
stars
181
forks
source link
Dependency analysing doesn't support square brackets in output reference expression #1036
Closed
suerta-git closed 2 years ago
Expectation:
I have a project contains 2 components. Its structure looks like:
And I have a reference expression in
api-gateway
which refers tofunctions
component:Then I expect that when I run
sls deploy
command on root, its deploying order is:Because
api-gateway
depends onfunctions
Current behavior:
The order is:
Cause:
https://github.com/serverless/components/blob/24d9123acf5e1680f7706b0891b4283a54c135b7/src/cli/utils.js#L630
The square brackets won't pass this regex, but they are necessary for me because I need to use them to select array elements.
Fix: