1

While I develop sample App by using CDKI come up with some questions. I change stack.ts in my project,and then cdk synth and cdk deploy. it seems compiling to js didn't needed in my project

when I see cdk.json following is specified.

"app": "npx ts-node --prefer-ts-exts bin/cdk.ts",

It seems that cdk.ts is endpoint of my stack.and it seems that they are no problem even if I work only in typescript.

compiling to javascript is not needed in cdk development ? Are there any problems of this ? If I misunderstand some essential things, will you please let me know Thanks

1 Answer 1

1

This is using ts-node:

ts-node is a TypeScript execution engine and REPL for Node.js.

It JIT transforms TypeScript into JavaScript, enabling you to directly execute TypeScript on Node.js without precompiling.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.