code2prompt
code2prompt copied to clipboard
--exclude in new v2.x does not work as instructed
Upgraded from v1.x to v2.x and tried this command:
code2prompt ./ --exclude="vendor,node_modules,build,composer.lock,package-lock.json,code2prompt.md" --exclude-from-tree --output=code2prompt.md
But all the excluded files are included in the output.
Hi! It looks like you're using the glob patterns wrong, I made the same mistake. Here is the explanation: https://github.com/mufeedvh/code2prompt/issues/31#issuecomment-2216852875
Should be like:
code2prompt <pathtoyourcodebase> --exclude "**/package.json"
How to exclude node_modules/ directory?