Skip to content

πŸ› Bug: Migration mode should not clobber .gitignoreΒ #1354

@danvk

Description

@danvk

Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Expected

For an existing project, the .gitignore file has probably accumulated lots of stuff that should be ignored.

I expected the migration script to add to .gitignore or adjust it, not to completely clobber it.

Actual

Running npx create-typescript-app completely clobbers the .gitignore file, replacing it with a two-liner.

Additional Info

I wound up with lots of previously-untracked files added to my repo after running the migrate script over at danvk/literate-ts#246

For example: I was ignoring the coverage directory, which contained HTML reports of code coverage that I would periodically generate. After migration, git wanted to track this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send a pull request to resolve this!type: bugSomething isn't working :(

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions