You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just read about the ability of the amplify cli to call all scripts in the root directory that start with amplify: on amplify push -y. But it doesn't seem to work. Is this still a feature?
The text was updated successfully, but these errors were encountered:
Hey @lucajung 👋 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/
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.
josefaidt
changed the title
Run NPM script on amplify push -y
allow building Lambda Layers with npm scripts amplify:<layer-name>Nov 15, 2023
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?The text was updated successfully, but these errors were encountered: