@gradientedge/cdk-utils 9.28.0 → 9.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,9 +6,9 @@ case `uname` in
6
6
  esac
7
7
 
8
8
  if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/bin/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules"
9
+ export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm/bin/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules"
10
10
  else
11
- export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/bin/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/esm/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules/uuid/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.3/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules:$NODE_PATH"
11
+ export NODE_PATH="/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm/bin/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/esm/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/dist/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules/uuid/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/uuid@11.0.5/node_modules:/home/runner/work/cdk-utils/cdk-utils/node_modules/.pnpm/node_modules:$NODE_PATH"
12
12
  fi
13
13
  if [ -x "$basedir/node" ]; then
14
14
  exec "$basedir/node" "$basedir/../uuid/dist/esm/bin/uuid" "$@"
@@ -5,7 +5,7 @@
5
5
  "main": "dist/index.js",
6
6
  "license": "UNLICENSED",
7
7
  "engines": {
8
- "node": ">=16 <=20"
8
+ "node": ">=16 <=22"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -39,6 +39,7 @@ export declare class CloudflarePagesStaticSite extends CommonCloudflareConstruct
39
39
  sitePagesPreviewSecrets: {
40
40
  [key: string]: string;
41
41
  };
42
+ siteDeploymentDependsOn: any;
42
43
  constructor(parent: Construct, id: string, props: CloudflarePagesStaticSiteProps);
43
44
  /**
44
45
  * @summary Initialise and provision resources
@@ -30,6 +30,7 @@ class CloudflarePagesStaticSite extends common_1.CommonCloudflareConstruct {
30
30
  sitePagesPreviewEnvironmentVariables;
31
31
  sitePagesSecrets;
32
32
  sitePagesPreviewSecrets;
33
+ siteDeploymentDependsOn;
33
34
  constructor(parent, id, props) {
34
35
  super(parent, id, props);
35
36
  this.props = props;
@@ -143,6 +144,7 @@ class CloudflarePagesStaticSite extends common_1.CommonCloudflareConstruct {
143
144
  directory: this.props.siteAssetDir,
144
145
  message: this.props.siteDeployMessage,
145
146
  projectName: this.sitePagesProject.name,
147
+ dependsOn: this.siteDeploymentDependsOn,
146
148
  });
147
149
  }
148
150
  }
@@ -91,6 +91,7 @@ class CloudflarePageManager {
91
91
  const deployment = new cdktf_local_exec_1.LocalExec(scope, `${id}-deploy-${new Date().toISOString()}`, {
92
92
  command: `CLOUDFLARE_ACCOUNT_ID=${scope.props.accountId} CLOUDFLARE_API_TOKEN=${scope.props.apiToken} npx wrangler pages deploy ${props.directory} --project-name=${props.projectName} --branch=${props.branch} --commit-message=${message}`,
93
93
  cwd: '',
94
+ dependsOn: props.dependsOn,
94
95
  });
95
96
  return deployment;
96
97
  }
@@ -12,4 +12,5 @@ export interface PagesProjectDeployProps {
12
12
  directory: string;
13
13
  message: string;
14
14
  projectName: string;
15
+ dependsOn?: any;
15
16
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.28.0",
3
+ "version": "9.30.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
7
- "node": ">=16 <=20",
8
- "pnpm": "=9"
7
+ "node": ">=16 <=22",
8
+ "pnpm": "=10"
9
9
  },
10
- "packageManager": "pnpm@9.14.1+sha256.9978d5f40d4f376b054cf8c000cf8c326284344281e3c9bbf4e3d6f153b0e8de",
10
+ "packageManager": "pnpm@10.0.0+sha512.b8fef5494bd3fe4cbd4edabd0745df2ee5be3e4b0b8b08fa643aa3e4c6702ccc0f00d68fa8a8c9858a735a0032485a44990ed2810526c875e416f001b17df12b",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/gradientedge/cdk-utils.git"
@@ -37,6 +37,7 @@ export class CloudflarePagesStaticSite extends CommonCloudflareConstruct {
37
37
  sitePagesPreviewEnvironmentVariables: { [key: string]: string }
38
38
  sitePagesSecrets: { [key: string]: string }
39
39
  sitePagesPreviewSecrets: { [key: string]: string }
40
+ siteDeploymentDependsOn: any
40
41
 
41
42
  constructor(parent: Construct, id: string, props: CloudflarePagesStaticSiteProps) {
42
43
  super(parent, id, props)
@@ -161,6 +162,7 @@ export class CloudflarePagesStaticSite extends CommonCloudflareConstruct {
161
162
  directory: this.props.siteAssetDir,
162
163
  message: this.props.siteDeployMessage,
163
164
  projectName: this.sitePagesProject.name,
165
+ dependsOn: this.siteDeploymentDependsOn,
164
166
  })
165
167
  }
166
168
  }
@@ -101,6 +101,7 @@ export class CloudflarePageManager {
101
101
  const deployment = new LocalExec(scope, `${id}-deploy-${new Date().toISOString()}`, {
102
102
  command: `CLOUDFLARE_ACCOUNT_ID=${scope.props.accountId} CLOUDFLARE_API_TOKEN=${scope.props.apiToken} npx wrangler pages deploy ${props.directory} --project-name=${props.projectName} --branch=${props.branch} --commit-message=${message}`,
103
103
  cwd: '',
104
+ dependsOn: props.dependsOn,
104
105
  })
105
106
 
106
107
  return deployment
@@ -10,4 +10,5 @@ export interface PagesProjectDeployProps {
10
10
  directory: string
11
11
  message: string
12
12
  projectName: string
13
+ dependsOn?: any
13
14
  }