From af88274b4a19898bf36cec5dc46d1cbfdc009f60 Mon Sep 17 00:00:00 2001 From: Francis Date: Fri, 6 Oct 2023 05:03:00 -0700 Subject: [PATCH] replace ../src with . Signed-off-by: Francis --- lib/__tests__/signing.test.ts | 2 +- lib/signing.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/__tests__/signing.test.ts b/lib/__tests__/signing.test.ts index 6b9d0f62..d0566f75 100644 --- a/lib/__tests__/signing.test.ts +++ b/lib/__tests__/signing.test.ts @@ -115,7 +115,7 @@ describe('with standard pipeline', () => { ], }, Source: { - BuildSpec: '{\n \"version\": \"0.2\",\n \"phases\": {\n \"install\": {\n \"commands\": [\n \"command -v yarn > /dev/null || npm install --global yarn\"\n ]\n },\n \"pre_build\": {\n \"commands\": [\n \"echo \\\"Downloading scripts from s3://${SCRIPT_S3_BUCKET}/${SCRIPT_S3_KEY}\\\"\",\n \"aws s3 cp s3://${SCRIPT_S3_BUCKET}/${SCRIPT_S3_KEY} /tmp\",\n \"mkdir -p /tmp/scriptdir\",\n \"unzip /tmp/$(basename $SCRIPT_S3_KEY) -d /tmp/scriptdir\"\n ]\n },\n \"build\": {\n \"commands\": [\n \"export SCRIPT_DIR=/tmp/scriptdir\",\n \"echo \\\"Running sign.sh\\\"\",\n \"/bin/bash /tmp/scriptdir/sign.sh\"\n ]\n }\n },\n \"artifacts\": {\n \"files\": [\n \"**/*\"\n ],\n \"base-directory\": \"../src\"\n }\n}', + BuildSpec: '{\n \"version\": \"0.2\",\n \"phases\": {\n \"install\": {\n \"commands\": [\n \"command -v yarn > /dev/null || npm install --global yarn\"\n ]\n },\n \"pre_build\": {\n \"commands\": [\n \"echo \\\"Downloading scripts from s3://${SCRIPT_S3_BUCKET}/${SCRIPT_S3_KEY}\\\"\",\n \"aws s3 cp s3://${SCRIPT_S3_BUCKET}/${SCRIPT_S3_KEY} /tmp\",\n \"mkdir -p /tmp/scriptdir\",\n \"unzip /tmp/$(basename $SCRIPT_S3_KEY) -d /tmp/scriptdir\"\n ]\n },\n \"build\": {\n \"commands\": [\n \"export SCRIPT_DIR=/tmp/scriptdir\",\n \"echo \\\"Running sign.sh\\\"\",\n \"/bin/bash /tmp/scriptdir/sign.sh\"\n ]\n }\n },\n \"artifacts\": {\n \"files\": [\n \"**/*\"\n ],\n \"base-directory\": \".\"\n }\n}', Type: 'NO_SOURCE', }, Cache: { diff --git a/lib/signing.ts b/lib/signing.ts index 970c737c..fe84d6df 100644 --- a/lib/signing.ts +++ b/lib/signing.ts @@ -77,7 +77,7 @@ export class SignNuGetWithSigner extends Construct implements ISigner { version: '0.2', artifacts: { files: ['**/*'], - ['base-directory']: '../src', + ['base-directory']: '.', }, }), environment,