I'm sorta confused as to why this script modified node_modules at all; that isn't something that would be shipped to end users, right? Is there another step somewhere that is copying the files instead? That seems much clearer to me.