Skip to content

Optionally respect the .gitignore even when a .pubignore is present #4545

Open
@JaffaKetchup

Description

@JaffaKetchup

As a package maintainer, I don't want to publish some larger files (for example, some assets for the example app) or some configuration files (which are present at the root, such as firebase.json). These need to remain checked-in. Therefore, I use a .pubignore.

However, the situation could arise where I also want to not check something into Git, which is normally done with .gitignore. If I'm using .pubignore already, I have to put the rule into both - so both Git respects it, and pub as well.

Therefore, it would be a nice QOL feature to be able to tell pub to also respect the .gitignore, even if I'm using .pubignore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions