![]() For example, a yarn_install(name = "npm". ![]() Repository rules, Bazel will setup your node_modules for you in an external workspace named after the Repository is first cloned, and rebuild it whenever it changes. Up to date with your package.json or yarn.lock files. With the Bazel-managed dependencies approach, Bazel is responsible for making sure that node_modules is You have two options for managing your node_modules dependencies: Bazel-managed or self-managed. Bazel-managed vs self-managed dependencies The package manager will also write a lock file, indicating exact versions for all transitive dependencies, which keeps your build hermetic and reproducible.īazel will run the package manager when the package.json or *lock.json files change, but you can also run the package manager yourself. You manage your package.json file, editing by hand or by running commands like npm install or yarn add. I develop using Vagrant on OS X or Linux.Bazel works alongside your existing package manager, either npm or yarn. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |