Skip to content

Allow tsconfig.json files with comments #9

@rob3c

Description

@rob3c

Hi, according to TypeScript #4987, it looks like comments are allowed in tsconfig.json files now. Unfortunately, tsconfig-glob throws an error if it has any, though.

I think this would be an easy fix if you're willing to take on an additional dependency like strip-json-comments to take them out first. I see you're already stripping possible BOMs, so this would just be another filter before JSON.parse. I'm happy to put together a pull request using it if you're willing to accept one.

Cheers,
Robert

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions