Hello.
It seems that deployment bot doesn’t cache project’s node_modules.
I use yarn’s workspaces feature with ‘lerna’.
My directories structure is:
...
package.json
yarn.lock
lerna.json
packages/
components/
package.json
project/
{other package files including src}
package.json
yarn.lock
Base directory is ‘/’ (root of repo)
Build command is cd packages/modern-agency && gatsby build && cd ../../
Possibly, node_modules of package aren’t cached but root node_modules should be cached, shouldn’t it? If it’s true, yarn install
shouldn’t take a lot of time but it did. On local machine yarn install
takes less than 10s if only root node_modules exists (node_modules of every packages doesn’t exist) and takes around minute if no any node_modules exists. When it’s building on Netlify yarn install
always takes around minute but I expected less than 10s. What did I do wrong?