boramalper
boramalper•2w ago

I cannot make deno exclude dist/ directory

👋 I'm trying to make deno exclude the dist/ directory from formatting but couldn't. I tried the exclude and fmt.exclude fields in deno.json and tried different values—dist, dist/, dist/*—but nothing worked. Every single time I run deno fmt (in the same directory where my deno.json is), I see that the files in dist/ directory are also formatted. It's not a dealbreaker but being unable to get something so small and simple is quite annoying. Is this a bug or am I doing something wrong? Thanks!
2 Replies
harshrastogiexe
harshrastogiexe•2w ago
Well this works for me, check is your path correct relative to current working directory
No description
boramalper
boramalperOP•2w ago
Ah I figured it out: I had a symbolic link to a file in my dist/ directory, which I presume deno followed... Thank you @harshrastogiexe !

Did you find this page helpful?