Description
Bug description
As part of the release process lerna
calls the version
command present in each one of the package.json
files. This command runs a series of other lifecycle hooks like liniting the codebase. In #1105 we changed the name of the script from format
to lint-fix
in all the package.json
files of the utilities.
However, in that PR, we forgot to update the content of the version
command that still referenced the old name format
.
This PR updates the content of the command from npm run format && git add -A src
to npm run lint-fix && git add -A src
(format
becomes lint-fix
).
Expected Behavior
Release process should run without errors.
Current Behavior
Release process throws an error because the format
command is called by version
but doesn't exist anymore.
Possible Solution
Change the content of the version
command from npm run format && git add -A src
to npm run lint-fix && git add -A src
(format
becomes lint-fix
).
Steps to Reproduce
Make a release, check result of this attempt.
Environment
- Powertools version used: N/A
- Packaging format (Layers, npm): N/A
- AWS Lambda function runtime: N/A
- Debugging logs: N/A