Heisenberg
Heisenberg

Reputation: 5299

Compiling to javascript is not needed in CDK typescript project?

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

Upvotes: 1

Views: 1069

Answers (1)

jarmod
jarmod

Reputation: 78613

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.

Upvotes: 1

Related Questions