From 9b555ec48846e934f64e59648fec7139acbab116 Mon Sep 17 00:00:00 2001 From: Ashleigh Carr Date: Fri, 18 Oct 2024 10:35:52 +0100 Subject: [PATCH] feat: Add exports for constructs --- package.json | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5697a35265..437285f5cc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@guardian/cdk", "description": "Generic Guardian flavoured AWS CDK components", - "version": "59.5.2", + "version": "59.5.3", "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ @@ -71,5 +71,37 @@ "aws-cdk": "2.157.0", "aws-cdk-lib": "2.157.0", "constructs": "10.3.0" + }, + "exports": { + ".": "./lib/index.js", + "./lib/constants/access": "./lib/constants/access.js", + "./lib/constants/context-keys": "./lib/constants/context-keys.js", + "./lib/constants/fastly-aws-account-ids": "./lib/constants/fastly-aws-account-ids.js", + "./lib/constants/library-info": "./lib/constants/library-info.js", + "./lib/constants/metadata-keys": "./lib/constants/metadata-keys.js", + "./lib/constants/regex-pattern": "./lib/constants/regex-pattern.js", + "./lib/constants/ssm-parameter-paths": "./lib/constants/ssm-parameter-paths.js", + "./lib/constants/tracking-tag": "./lib/constants/tracking-tag.js", + "./lib/constructs/acm": "./lib/constructs/acm/index.js", + "./lib/constructs/autoscaling": "./lib/constructs/autoscaling/index.js", + "./lib/constructs/cloudwatch": "./lib/constructs/cloudwatch/index.js", + "./lib/constructs/core": "./lib/constructs/core/index.js", + "./lib/constructs/dns": "./lib/constructs/dns/index.js", + "./lib/constructs/dynamodb": "./lib/constructs/dynamodb/index.js", + "./lib/constructs/ec2": "./lib/constructs/ec2/index.js", + "./lib/constructs/ecs": "./lib/constructs/ecs/index.js", + "./lib/constructs/iam": "./lib/constructs/iam/index.js", + "./lib/constructs/kinesis": "./lib/constructs/kinesis/index.js", + "./lib/constructs/lambda": "./lib/constructs/lambda/index.js", + "./lib/constructs/loadbalancing": "./lib/constructs/loadbalancing/index.js", + "./lib/constructs/rds": "./lib/constructs/rds/index.js", + "./lib/constructs/s3": "./lib/constructs/s3/index.js", + "./lib/constructs/ses": "./lib/constructs/ses/index.js", + "./lib/constructs/vpc": "./lib/constructs/vpc/index.js", + "./lib/constructs/root": "./lib/constructs/root.js", + "./lib/experimental": "./lib/experimental/patterns/index.js", + "./lib/experimental/constructs/iam": "./lib/experimental/constructs/iam/index.js", + "./lib/experimental/constructs/policies": "./lib/experimental/constructs/policies/index.js", + "./lib/riff-raff-yaml-file": "./lib/riff-raff-yaml-file/index.js" } }