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',