From 9f2aed80e1b3dc57726139d1ad045d2b6545fa67 Mon Sep 17 00:00:00 2001 From: Adam Hall Date: Mon, 18 Sep 2023 09:26:31 +0930 Subject: [PATCH] Ensure handler is included in package --- packages/graphql-mesh-server/.npmignore | 2 +- .../graphql-mesh-server/assets/{ => handlers}/notify-sns.ts | 0 packages/graphql-mesh-server/lib/pipeline.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename packages/graphql-mesh-server/assets/{ => handlers}/notify-sns.ts (100%) diff --git a/packages/graphql-mesh-server/.npmignore b/packages/graphql-mesh-server/.npmignore index bfd115ba..96724112 100644 --- a/packages/graphql-mesh-server/.npmignore +++ b/packages/graphql-mesh-server/.npmignore @@ -1,5 +1,5 @@ *.ts -!lib/handlers/*.ts +!assets/handlers/*.ts !*.d.ts !*.js diff --git a/packages/graphql-mesh-server/assets/notify-sns.ts b/packages/graphql-mesh-server/assets/handlers/notify-sns.ts similarity index 100% rename from packages/graphql-mesh-server/assets/notify-sns.ts rename to packages/graphql-mesh-server/assets/handlers/notify-sns.ts diff --git a/packages/graphql-mesh-server/lib/pipeline.ts b/packages/graphql-mesh-server/lib/pipeline.ts index 0b7cdd54..68efe7fb 100644 --- a/packages/graphql-mesh-server/lib/pipeline.ts +++ b/packages/graphql-mesh-server/lib/pipeline.ts @@ -104,7 +104,7 @@ export class CodePipelineService extends Construct { if (props.notificationArn) { const notifier = new NodejsFunction(this, 'NotifierLambda', { - entry: path.resolve(__dirname, '../assets/notify-sns.ts'), + entry: path.resolve(__dirname, '../assets/handlers/notify-sns.ts'), description: 'Lambda function to forward SNS messages to another account.', runtime: Runtime.NODEJS_18_X, handler: 'index.handler',