How node modules re installed for next deployment

I’ve got my React application in Netlify already.
currently discussing a second deployment that would involve only minor copy/text changes—no updates to package.json, yarn.lock, or any dependencies.
I’d like to understand:
In such a scenario, where only copy changes are made, does Netlify reuse the previously cached node_modules during the build?
Or does it reinstall all packages from scratch, even if there are no changes to dependency-related files?
I’m looking to optimize build time and ensure security, so any clarity on how Netlify handles caching in this context would be greatly appreciated.
Thanks in advance for your support!

hey @umerfarad ! in the scenario you described:

only minor copy/text changes—no updates to package.json, yarn.lock, or any dependencies

The build should reuse the previous cache. Updates to certain files, such as the ones you mentioned (package.json, yarn.lock), will cause the build to rerun the installation command.