Skip to content

[SHIP-1981]: Use commonjs module for ts-node compatibility#6

Merged
adriantaut merged 1 commit intomainfrom
feature/SHIP-1981-fix-cdk
Jan 22, 2026
Merged

[SHIP-1981]: Use commonjs module for ts-node compatibility#6
adriantaut merged 1 commit intomainfrom
feature/SHIP-1981-fix-cdk

Conversation

@adriantaut
Copy link
Collaborator

Summary

Fix CDK failing with Cannot find module '../lib/fizzy-stack.js' error.

Root cause: Fizzy used NodeNext module with .js extensions in imports, which requires compilation before running. Core uses commonjs which ts-node handles natively.

Changes

  • Change tsconfig to use commonjs (matching zarpay/core)
  • Remove .js extensions from all imports
  • No yarn build step needed before CDK commands

Test plan

  • yarn cdk synth --context imageVersion=test runs without module errors
  • CI passes

🤖 Generated with Claude Code

- Change tsconfig to use commonjs (like zarpay/core)
- Remove .js extensions from imports
- No build step needed before cdk commands
@adriantaut adriantaut merged commit c9f267d into main Jan 22, 2026
2 checks passed
@adriantaut adriantaut deleted the feature/SHIP-1981-fix-cdk branch January 22, 2026 12:34
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.

1 participant