mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 09:16:55 +00:00
* feat(aws-lambda): push a prebuilt image to ECR without Docker Adds pushImageToEcr and ensureEcrRepository to the SDK subpath. The push reads a single-platform OCI image layout, verifies every blob against its descriptor before any ECR call, uploads only the blobs ECR lacks through the layer-upload API, and puts the manifest under a tag, returning the digest-pinned image URI. * fix(aws-lambda): keep the ECR client out of the SDK bundle Like the other AWS SDK clients, @aws-sdk/client-ecr is a dependency the consumer resolves. Bundled into the ESM SDK it hits a dynamic require of node:https and the packed package fails to import. * feat(aws-lambda): build the ECR client from a region like the other SDK calls * build(aws-lambda): add only the ECR client to the lockfile * fix(aws-lambda): adopt an existing ECR repository only when it carries the caller's tags * chore(aws-lambda): raise the size budget for pushing an image to ECR pushImageToEcr ships in dist (unminified chunk plus its .d.ts); no source maps, tests or release-only files are involved. Built dist, npm pack --dry-run, main versus main plus this branch: +2486 B packed, +8846 B unpacked. The merge-group run measured 73369 packed and 266805 unpacked, which are the new budgets (were 70874 and 258166).
114 lines
3.0 KiB
JSON
114 lines
3.0 KiB
JSON
{
|
|
"name": "@hyperframes/aws-lambda",
|
|
"version": "0.8.186",
|
|
"description": "AWS Lambda adapter for HyperFrames distributed rendering — handler, client-side SDK, and CDK construct.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
"directory": "packages/aws-lambda"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"prebuilt/",
|
|
"scripts/",
|
|
"!scripts/*.test.ts",
|
|
"!scripts/pin-handler-zip.ts",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"import": "./src/index.ts",
|
|
"types": "./src/index.ts"
|
|
},
|
|
"./handler": {
|
|
"bun": "./src/handler.ts",
|
|
"import": "./src/handler.ts",
|
|
"types": "./src/handler.ts"
|
|
},
|
|
"./sdk": {
|
|
"bun": "./src/sdk/index.ts",
|
|
"import": "./src/sdk/index.ts",
|
|
"types": "./src/sdk/index.ts"
|
|
},
|
|
"./cdk": {
|
|
"bun": "./src/cdk/index.ts",
|
|
"import": "./src/cdk/index.ts",
|
|
"types": "./src/cdk/index.ts"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"types": "./dist/index.d.ts"
|
|
},
|
|
"./handler": {
|
|
"import": "./dist/handler.js",
|
|
"types": "./dist/handler.d.ts"
|
|
},
|
|
"./sdk": {
|
|
"import": "./dist/sdk/index.js",
|
|
"types": "./dist/sdk/index.d.ts"
|
|
},
|
|
"./cdk": {
|
|
"import": "./dist/cdk/index.js",
|
|
"types": "./dist/cdk/index.d.ts"
|
|
}
|
|
},
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"build": "node build.mjs",
|
|
"build:zip": "tsx scripts/build-zip.ts",
|
|
"probe:beginframe": "tsx scripts/probe-beginframe.ts",
|
|
"probe:beginframe:docker": "docker build -f scripts/probe-beginframe.dockerfile -t hyperframes-lambda-probe:local ../.. && docker run --rm hyperframes-lambda-probe:local",
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit",
|
|
"verify:zip-size": "tsx scripts/verify-zip-size.ts"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-ecr": "^3.1146.0",
|
|
"@aws-sdk/client-lambda": "^3.1146.0",
|
|
"@aws-sdk/client-s3": "^3.1146.0",
|
|
"@aws-sdk/client-sfn": "^3.1146.0",
|
|
"@aws-sdk/s3-request-presigner": "3.1146.0",
|
|
"@hyperframes/producer": "workspace:^",
|
|
"@sparticuz/chromium": "148.0.0",
|
|
"ffmpeg-static": "^5.2.0",
|
|
"ffprobe-static": "^3.1.0",
|
|
"puppeteer-core": "^25.8.0",
|
|
"tar": "^7.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/aws-lambda": "^8.10.146",
|
|
"@types/node": "^25.0.10",
|
|
"@types/tar": "^6.1.13",
|
|
"aws-cdk-lib": "^2.130.0",
|
|
"constructs": "^10.3.0",
|
|
"esbuild": "^0.25.12",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.7.2",
|
|
"yaml": "^2.9.0"
|
|
},
|
|
"peerDependencies": {
|
|
"aws-cdk-lib": "^2.130.0",
|
|
"constructs": "^10.3.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"aws-cdk-lib": {
|
|
"optional": true
|
|
},
|
|
"constructs": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
}
|
|
}
|