From 23f7d397c2c6efe01685aa528cd8cce970c474f5 Mon Sep 17 00:00:00 2001 From: Aaron Daniels Date: Tue, 17 Dec 2024 14:01:33 -0500 Subject: [PATCH] fix(build): repair pdk yarn invocations In `build.sh`, the invocation to PDK had extra sets of tokens that were unneeded; I have removed those. In both `deployAll.sh` and `deployDev.sh`, `pdk` referred to a projen tasks (`workspace`, `run`) that didn't exist; I have reverted the PDK invocation to use `yarn` instead. --- scripts/build.sh | 2 +- scripts/deployAll.sh | 3 ++- scripts/deployDev.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 62b2040c..45f5de46 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -4,4 +4,4 @@ set -e pdk install --frozen-lockfile pdk build -pdk workspaces run eslint +pdk eslint diff --git a/scripts/deployAll.sh b/scripts/deployAll.sh index c2ed15b5..3761b208 100755 --- a/scripts/deployAll.sh +++ b/scripts/deployAll.sh @@ -1,8 +1,9 @@ #!/bin/bash + set -e SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) ${SCRIPT_DIR}/build.sh -pdk workspace @aws/threat-composer-infra run cdk deploy +yarn workspace @aws/threat-composer-infra run cdk deploy diff --git a/scripts/deployDev.sh b/scripts/deployDev.sh index 534441d4..e946b69c 100755 --- a/scripts/deployDev.sh +++ b/scripts/deployDev.sh @@ -6,4 +6,4 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) ${SCRIPT_DIR}/build.sh -pdk workspace @aws/threat-composer-infra run cdk deploy Dev/ThreatComposerAppStack +yarn workspace @aws/threat-composer-infra run cdk deploy Dev/ThreatComposerAppStack