Because I'm using microsoft nuget, I want to ignore all the package directories in my projects (there are a huge number of these and those files are all temporary). Unfortunately, in the JavaScript library I also have in the same repository, I need the package directory. So, I have in my .gitignore
...
package
...
But, in my directory
/JavaScript/package/importantfiles
I want to not ignore this file.
How can I let all "package" get ignored, but in the directory /JavaScript/... I want package to be included in source control?