Advanced Features¶
Advanced features and detailed information for using CDK with Runway.
Build Steps¶
Build steps (e.g. for compiling TypeScript) can be specified in the 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
the 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
module option:
Example
---
deployments:
- modules:
- path: mycdkmodule.cdk
options:
skip_npm_ci: true