Skip to content

How to exclude files or folders from being ignored in a .distignore file #44

@zerozak100

Description

@zerozak100

I have this .distignore file

.distignore
.git
.gitignore
composer.json
composer.lock
package.json
package-lock.json
yarn.lock
vendor
node_modules
frontend/*
!/frontend/build/

I have noticed that, sadly, this does not behave like a normal .gitignore. Slashes at the beginning won't work so if I try to exclude a directory from being ignore the git way with ! it does not seem to work. Even if I remove the initial slash it won't work either.

Is it even possible to do this any other way?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions