Build Optimizations - #6200
Conversation
|
https://docs.npmjs.com/cli/v12/configuring-npm/package-lock-json package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json. It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates. This file is intended to be committed into source repositories, and serves various purposes... |
The main package manager for FMHY is supposed to be pnpm so we use the pnpm lock, not the package-lock.json for npm. We aren't supposed to keep multiple package lock json files for different package managers |
Made the build time much faster
Results:
I'm not sure why my PC was extremely slow with the original image generation (maybe it was a fluke), but it's much improved now.
I also removed the package-lock.json and added it to gitignore so people will stop committing it. It's not supposed to be committed