in aws_lambda_builders/workflows/nodejs_npm/workflow.py [0:0]
def _actions_for_updating_dependencies_dir(self):
# clean up the dependencies folder first
actions = [CleanUpAction(self.dependencies_dir)]
# if combine_dependencies is set, we should keep dependencies and source code in the artifact folder
# while copying the dependencies. Otherwise we should separate the dependencies and source code
if self.combine_dependencies:
actions.append(
CopyDependenciesAction(
source_dir=self.source_dir,
artifact_dir=self.artifacts_dir,
destination_dir=self.dependencies_dir,
maintain_symlinks=self.build_dir == self.source_dir,
manifest_dir=self.manifest_dir,
)
)
else:
actions.append(
MoveDependenciesAction(
source_dir=self.source_dir,
artifact_dir=self.artifacts_dir,
destination_dir=self.dependencies_dir,
manifest_dir=self.manifest_dir,
)
)
return actions