You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deno will probably not work with this alone.
Assuming --file="**/*.ts" --exclude-file=package.json would match every directory which does not contain a package.json and some TypeScript file somewhere below.
Having the following directory structure
./a/b/package.json
./a/b/src/main.ts
./c/main.ts
would end up with these results, as all of them match the condition:
./a/
./a/b/src/
./c/
A simple idea to overcome this would be to not enter directories which already hit the exclude condition. But this also does not work. This would deny ./a/b/src/ as it is below the excluded ./a/b/ (contains package.json) but would still find the ./a/ directory which is also wrong.
A Repo containing Deno code does not contain a top level
package.json
. In order to check for this a negative glob has to be used.Something like this could be neat:
(Deno will probably also require #1 for many projects)
The text was updated successfully, but these errors were encountered: