Skip to content

(cli): .gitignore is not generated during cdk init app from v2.14 or later #19460

@konokenj

Description

@konokenj

What is the problem?

.gitignore is missing after cdk init app --language=typescript in v2.14.0. It exists in v2.13.0.
This problems still exists in latest version (v2.17.0).

Reproduction Steps

# .gitignore is missing
npx aws-cdk@2.14 init app --generate-only --language=typescript
# .gitignore exists
npx aws-cdk@2.13 init app --generate-only --language=typescript

What did you expect to happen?

Initialize project with correctly.

What actually happened?

Since the.gitignore does not exist, node_modules are committed to git. To avoid this, it is necessary to copy the.gitignore generated by the previous version.

CDK CLI Version

2.14.0 (build 762d71b)

Framework Version

No response

Node.js Version

v16.3.0

OS

macOS Big Sur 11.6.4

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.p1package/toolsRelated to AWS CDK Tools or CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions