@cdklabs/deploy-time-build 0.0.5 → 0.0.6

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.
package/package.json CHANGED
@@ -19,7 +19,6 @@
19
19
  "integ:update": "npx projen integ:update",
20
20
  "package": "npx projen package",
21
21
  "package-all": "npx projen package-all",
22
- "package:java": "npx projen package:java",
23
22
  "package:js": "npx projen package:js",
24
23
  "package:python": "npx projen package:python",
25
24
  "post-compile": "npx projen post-compile",
@@ -88,7 +87,7 @@
88
87
  "publishConfig": {
89
88
  "access": "public"
90
89
  },
91
- "version": "0.0.5",
90
+ "version": "0.0.6",
92
91
  "jest": {
93
92
  "coverageProvider": "v8",
94
93
  "testMatch": [
@@ -139,13 +138,6 @@
139
138
  "jsii": {
140
139
  "outdir": "dist",
141
140
  "targets": {
142
- "java": {
143
- "package": "io.github.cdklabs.deploy.time.build",
144
- "maven": {
145
- "groupId": "io.github.cdklabs",
146
- "artifactId": "deploy-time-build"
147
- }
148
- },
149
141
  "python": {
150
142
  "distName": "cdklabs.deploy-time-build",
151
143
  "module": "cdklabs.deploy_time_build"
@@ -10,7 +10,7 @@ import * as apigateway from 'aws-cdk-lib/aws-apigateway';
10
10
  import * as s3 from 'aws-cdk-lib/aws-s3';
11
11
  import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
12
12
  import * as iam from 'aws-cdk-lib/aws-iam';
13
- import { NodejsBuild } from '@cdklabs/deploy-time-build';
13
+ import { NodejsBuild, CacheType, ComputeType } from '@cdklabs/deploy-time-build';
14
14
 
15
15
  declare const api: apigateway.RestApi;
16
16
  declare const destinationBucket: s3.IBucket;
@@ -0,0 +1,28 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Minimum CDK version to test against
5
+ MIN_CDK_VERSION="${1:-2.38.0}"
6
+ MIN_CONSTRUCTS_VERSION="${2:-10.0.5}"
7
+
8
+ echo "=== Verifying compatibility with aws-cdk-lib@${MIN_CDK_VERSION} ==="
9
+
10
+ # Install minimum versions (this modifies package-lock.json temporarily)
11
+ # Use --legacy-peer-deps to ignore peer dependency conflicts from devDeps like @aws-cdk/integ-tests-alpha
12
+ # These conflicts are internal to this repo and not relevant to library consumers
13
+ echo "Installing minimum CDK version..."
14
+ npm install "aws-cdk-lib@${MIN_CDK_VERSION}" "constructs@${MIN_CONSTRUCTS_VERSION}" --save-dev --legacy-peer-deps
15
+
16
+ # Run jsii compilation
17
+ echo "Running JSII compilation..."
18
+ npx jsii --silence-warnings=reserved-word
19
+
20
+ # Run unit tests (without integ-runner)
21
+ echo "Running unit tests..."
22
+ npx jest --passWithNoTests
23
+
24
+ # Restore package.json and package-lock.json
25
+ echo "Restoring package files..."
26
+ git checkout package.json package-lock.json
27
+
28
+ echo "=== Minimum CDK version compatibility verified! ==="