-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Improvements for cdk init typescript #18743
Comments
Hey @rantoniuk, Our init templates can be found here I don't think we'll want to pin dependencies or remove source map support, but I think we'd like to have the TS version upgraded 🙂 I'm unsure if we'll want to make the tsconfig change either |
I cannot react to the other two responses, since they do not contain any reason/explanation. |
For CDK v1 the version needs to be pinned as it will explode with version incompatibilities otherwise |
It will not explode if package-lock is used and all packages are upgraded when new packages are added. |
A We've actually had The TypeScript version is dictated by the JSII version we use. |
Surely it should not be dictated up to a pinned version, but to a compatible version - i.e. it should use at least |
Thank you for your suggestions here. Given that we are unable to upgrade TypeScript at this time, need the |
|
General Issue
Improvements for cdk init typescript
The Question
After running
cdk init app --language=typescript
and checking how the project is set up, I can see the following that could be improved:@aws-cdk
dependencies are pinned, while they could (should?) use^1.141.0
typescript
major version is 3.x, could be bumped to~4.4.4
import 'source-map-support/register';
line doesn't seem to be neededtsconfig.json
"outDir": "dist"
anddist
toexclude
section to keep the workspace cleanHappy to provide PR if the above make sense, please let me know where to look though.
CDK CLI Version
1.141.0
Framework Version
No response
Node.js Version
14
OS
MacOS
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: