Advanced Features
Advanced features and detailed information for using CDK with Runway.
Contents
Build Steps
Build steps (e.g. for compiling TypeScript) can be specified in deployment.module_options
/module.options
.
These steps will be run before each diff, deploy, or destroy.
Example
deployments:
- modules:
- path: mycdkmodule.cdk
environments:
dev: true
options:
build_steps:
- npx tsc
Disabling NPM CI
At the start of each module execution, Runway will execute npm ci
to ensure that CDK is installed in the project (so Runway can execute it via npx cdk
).
This can be disabled (e.g. for use when the node_modules
directory is pre-compiled) via the skip_npm_ci
field of deployment.module_options
/module.options
.
Example
deployments:
- modules:
- path: mycdkmodule.cdk
options:
skip_npm_ci: true