Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use npm update when building in source #579

Merged
merged 4 commits into from
Nov 27, 2023

Conversation

mndeveci
Copy link
Contributor

@mndeveci mndeveci commented Nov 23, 2023

Issue #, if available:
N/A

Description of changes:
When --build-in-source is used, npm install command won't remove any dependency that is removed between 2 invocations.

This PR addresses that by adding NodejsNpmUpdateAction and using it when build-in-source is enabled which runs npm --no-audit --no-save --unsafe-perm --production --no-package-lock --install-links.

--install-links flag is also removed from NodejsNpmInstallAction which was only used for build in source workflow.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mndeveci mndeveci marked this pull request as ready for review November 23, 2023 19:30
@mndeveci mndeveci requested a review from a team as a code owner November 23, 2023 19:30
Copy link
Contributor

@mildaniel mildaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Mehmet, LGTM. One very minor question.

Copy link
Contributor

@lucashuy lucashuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the delay in review, thanks for making the changes!

@mndeveci mndeveci added this pull request to the merge queue Nov 27, 2023
Merged via the queue into aws:develop with commit 8dba2d1 Nov 27, 2023
141 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants