This PR adds two steps to the installation of the extension dependencies:
First, it restores the node_modules from the global cache (if it exists) by copying the node_modules from {globalStorage}/.cache/node_modules into {extensionPath}/node_modules
Second, it installs the extension's dependencies by running npm install
Third, it copies the freshly installed node_modules into the global cache at {globalStorage}/.cache/node_modules to keep the cache updated.
This makes the installation process faster for future version because it doesn't run the npm install on an empty node_modules but instead it keeps the ones from the previous version.
This PR adds two steps to the installation of the extension dependencies:
node_modules
from the global cache (if it exists) by copying thenode_modules
from{globalStorage}/.cache/node_modules
into{extensionPath}/node_modules
npm install
node_modules
into the global cache at{globalStorage}/.cache/node_modules
to keep the cache updated.This makes the installation process faster for future version because it doesn't run the
npm install
on an emptynode_modules
but instead it keeps the ones from the previous version.