Skip to content

add bazel to lingua#369

Open
Ken Jiang (knjiang) wants to merge 2 commits into
mainfrom
07-20-add_bazel_to_lingua
Open

add bazel to lingua#369
Ken Jiang (knjiang) wants to merge 2 commits into
mainfrom
07-20-add_bazel_to_lingua

Conversation

@knjiang

Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@knjiang
Ken Jiang (knjiang) marked this pull request as ready for review July 20, 2026 23:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 430a891872

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

"scripts": {
"preinstall": "node -e \"const userAgent = process.env.npm_config_user_agent || ''; if (process.env.INIT_CWD === process.cwd() && !userAgent.includes('pnpm/')) { console.error('Use pnpm in this repo.'); process.exit(1); }\"",
"build": "pnpm run build:nodejs && pnpm run build:web && pnpm run prepare:pack",
"build": "if [ \"${BRAINTRUST_USE_BAZEL_WASM_PACK:-}\" = \"1\" ]; then bash ../../../tools/bazel/materialize_wasm_package.sh lingua; else pnpm run build:nodejs && pnpm run build:web; fi && pnpm run prepare:pack",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Point the Bazel branch at a checked-in script

When BRAINTRUST_USE_BAZEL_WASM_PACK=1, pnpm run build now executes bash ../../../tools/bazel/materialize_wasm_package.sh lingua from bindings/lingua-wasm, which resolves outside this repository. I checked the repo for materialize_wasm_package.sh/tools/bazel and no such script is tracked, so any CI or publish path enabling this flag fails before producing the nodejs/web artifacts. Please add the script to the repo or point this branch at an existing checked-in path.

Useful? React with 👍 / 👎.

@CLowbrow Alex Z (CLowbrow) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what that comment from codex means so I'm going to approve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants