@pulumi/cdk is a TypeScript SDK that lets Pulumi programs use AWS CDK constructs.
src/index.ts: public API exportssrc/stack.ts,src/synthesizer.ts: core runtime behaviorsrc/converters/: CDK-to-Pulumi conversion logictests/: Jest tests for TypeScript behaviorexamples/,integration/: Go-based acceptance suitesschemas/aws-native-metadata.json: generated metadata, not hand-edited
- Install deps:
yarn install --frozen-lockfile - Build (compile only):
yarn run build - Build (full local, may write):
yarn run build:full - Build (CI/check):
yarn run build:ci - Lint (check):
yarn run lint:check - Lint (fix):
yarn run lint:fix - Format (check):
yarn run format:check - Format (write):
yarn run format - Unit tests:
yarn run test - Fast unit tests:
yarn run test:fast - Update snapshots:
yarn run test:update-snapshots - Quick verify:
yarn run verify - Makefile surface:
make help - Example/integration tests:
yarn run test-examples
- Keep
package.jsonversion placeholder${VERSION}for release automation. - Do not hand-edit
schemas/aws-native-metadata.json; update throughmake renovate. - Treat exports in
src/index.tsas semver-sensitive public API.
- Do not run destructive git commands (
reset --hard, force push) without approval. - Do not claim tests passed without running them.
- Do not commit unrelated formatting churn.
- Public API exports change (
src/index.ts). - Schema/mapping behavior changes (
schemas/,src/*resource-mappings*). - CI and local behavior diverge after using command canon.
src/**/*.ts: runyarn run verifytests/**: runyarn run testexamples/**orintegration/**: runyarn run test-examplespackage.json: runyarn install --frozen-lockfileand verify lockfile