aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
5.09k stars 2.14k forks source link

fix: update build-typescript.sh #891

Closed pahud closed 1 year ago

pahud commented 1 year ago

https://github.com/aws-samples/aws-cdk-examples/blob/2a494c4c30ff58bcc16b6e338cb704b16329e4aa/.github/workflows/build-pull-request.yml#L76

The build-typescript.sh should just build a single ts project rather than all projects

https://github.com/aws-samples/aws-cdk-examples/blob/2a494c4c30ff58bcc16b6e338cb704b16329e4aa/scripts/build-typescript.sh#L5

This PR fixes this issue and conditionally install the npm packages with yarn or npm command based on the availability of yarn.lock and npm-lock.json.


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