Skip to content

feat(cli): support cdktn.json config file#153

Open
gabegorelick wants to merge 1 commit intoopen-constructs:mainfrom
gabegorelick:cdktn-json
Open

feat(cli): support cdktn.json config file#153
gabegorelick wants to merge 1 commit intoopen-constructs:mainfrom
gabegorelick:cdktn-json

Conversation

@gabegorelick
Copy link
Copy Markdown
Contributor

@gabegorelick gabegorelick commented May 4, 2026

Support cdktn.json in addition to cdktf.json. When both are present, cdktn.json will be used.

See #152

Related issue

Fixes #152

Description

Extra config file resolution into shared utilities. Those utilities check for cdktn.json and fallback to cdktf.json if cdktn.json does not exist.

cdktf.json is still referenced in many of the examples and docs, and it is still emitted by cdktn init. Followup work can update those instances.

Checklist

  • I have updated the PR title to match CDKTN's style guide
  • I have run the linter on my code locally
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation if applicable
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works if applicable
  • New and existing unit tests pass locally with my changes

Support cdktn.json in addition to cdktf.json. When both are present,
cdktn.json will be used.

See open-constructs#152
@gabegorelick gabegorelick marked this pull request as ready for review May 4, 2026 03:26
@gabegorelick gabegorelick requested a review from a team as a code owner May 4, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cdktn-cli: support cdktn.json config file

1 participant