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?