Open lucajung opened 1 year ago
Hey @lucajung :wave: thanks for raising this! This feature is specific to Functions, where you can name an npm script as amplify:<function-name>
and the CLI will invoke this after installing dependencies for the Function. https://docs.amplify.aws/cli/function/build-options/
What is the use case you're looking to address?
Hi!
The use case described in this article is actually exactly what I am trying to achieve. However, I am trying to call the function in a layer project and not in a pure function project. Does this matter?
Hey @lucajung I do not believe this will work with Lambda Layers, unfortunately, however I can mark this as a feature request to introduce this behavior.
Thanks!
Amplify CLI Version
12.8.2
Question
I just read about the ability of the amplify cli to call all scripts in the root directory that start with
amplify:
onamplify push -y
. But it doesn't seem to work. Is this still a feature?