Npm install outside ?
Build actions?
Copying things around?
Comments: npm install outside is tricky because that would require a full-fledged filesystem watcher, and it would also race against any VS-initiated operation. Copying things around is not particularly useful, because the main source of these troubles is node_modules, and you don't manually tinker with that outside of npm. Validating on build would be the catch-all in case this is missed in any other scenario.
Build actions?
Copying things around?
Comments: npm install outside is tricky because that would require a full-fledged filesystem watcher, and it would also race against any VS-initiated operation. Copying things around is not particularly useful, because the main source of these troubles is node_modules, and you don't manually tinker with that outside of npm. Validating on build would be the catch-all in case this is missed in any other scenario.