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.
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 runsnpm --no-audit --no-save --unsafe-perm --production --no-package-lock --install-links
.--install-links
flag is also removed fromNodejsNpmInstallAction
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.