Rails 7 removed the tie between assets:precompile and yarn:install, meaning that deploys will fail because node_modules isn't there.
Replace the connection to the yarn task
Link the node_modules directory to speed up installs
Interestingly, I think some of our apps are just shuffling along with only #2 implemented. That is, they haven't actually installed new Node dependencies since the 7.0 upgrade, but asset precompilation doesn't fail because a(n old) node_modules directory exists.
Rails 7 removed the tie between
assets:precompile
andyarn:install
, meaning that deploys will fail becausenode_modules
isn't there.node_modules
directory to speed up installsInterestingly, I think some of our apps are just shuffling along with only #2 implemented. That is, they haven't actually installed new Node dependencies since the 7.0 upgrade, but asset precompilation doesn't fail because a(n old)
node_modules
directory exists.