Skip to content

Commit

Permalink
fix(frontend/react): fix devserver start (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
crackcomm authored Nov 18, 2023
1 parent 171c75b commit 3bb76f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ bazel_dep(name = "bazel_skylib", version = "1.4.2")
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
npm.npm_translate_lock(
name = "npm",
bins = {
# derived from "bin" attribute in node_modules/react-scripts/package.json
"react-scripts": [
"react-scripts=./bin/react-scripts.js",
],
},
npmrc = "//:.npmrc",
pnpm_lock = "//:pnpm-lock.yaml",
public_hoist_packages = {
Expand Down
1 change: 1 addition & 0 deletions frontend/react/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ js_test(
js_run_devserver(
name = "start",
args = ["start"],
chdir = package_name(),
command = "node_modules/.bin/react-scripts",
data = CRA_DEPS,
)
Expand Down

0 comments on commit 3bb76f6

Please sign in to comment.