Skip to content

Instantly share code, notes, and snippets.

@royib
Created January 25, 2023 08:54
Show Gist options
  • Save royib/e3159b3ce3cc90e376ce5ce1cb326553 to your computer and use it in GitHub Desktop.
Save royib/e3159b3ce3cc90e376ce5ce1cb326553 to your computer and use it in GitHub Desktop.
bazel react build file
load("@npm//:defs.bzl", "npm_link_all_packages")
# Link all packages from the /WORKSPACE npm_translate_lock(name = "npm") and also packages from
# manual /WORKSPACE npm_import rules to bazel-bin/node_modules as well as the virtual store
# bazel-bin/node_modules/.aspect_rules_js since /pnpm-lock.yaml is the root of the pnpm workspace
npm_link_all_packages(
name = "node_modules"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment