awslabs / aws-embedded-metrics-node

Amazon CloudWatch Embedded Metric Format Client Library
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format.html
Apache License 2.0
252 stars 35 forks source link

undo node_modules removal in pre-publish #127

Closed markkuhn closed 2 years ago

markkuhn commented 2 years ago

Issue #, if available: N/A

Description of changes: Deployment stage is failing due to sh: jest: command not found. This change attempts to fix this issue by removing the command to delete node_modules in publish-package.sh. This shouldn't have any effect on publishing since npm publish ignores all files present in .gitignore.

Why wasn't this happening before? npm's prepare and prepublishOnly stages were unable to run in previous builds.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.