Is there a way to get rid of bower_components and node_modules directories in sage theme folder?

Hi, just sarting, so please excuse my fault-pas - is it possible to put the bower_components and the node_modules anywhere else into a temporary directory, so that the theme folder stays clean? I know I can just put these directories in a gitignore file, but i have some custom deployment / backup procedures that will create lots of bloat witht that many npm stuff in the theme folder. Any way to get that into a ~/tmp/nodejs or similar directory (independent on what host, dev or live servers)?

Thank you very much for your attention,

Just have your custom deployment / backup stuff ignore those directories