bazel build //walldash:node_modules. Adds pnpm-lock.yaml (from package-lock) + pnpm.onlyBuiltDependencies, and npm_link_all_packages in BUILD.bazel. Native bun build/run is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
12 lines
451 B
Text
12 lines
451 B
Text
load("@npm//:defs.bzl", "npm_link_all_packages")
|
|
|
|
# rules_js PoC: link the full npm dependency graph (from package-lock.json) via
|
|
# Bazel. `bazel build //walldash:node_modules` resolves all packages.
|
|
# A complete `next build` under Bazel is a further step (ts_project + next rule).
|
|
npm_link_all_packages(name = "node_modules")
|
|
|
|
filegroup(
|
|
name = "srcs",
|
|
srcs = glob(["src/**"], allow_empty = True),
|
|
visibility = ["//visibility:public"],
|
|
)
|