FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

refactor(xtask): use globals from node_modules instead of HTTP by Boshen · Pull Request #144 · oxc-project/javascript-globals · GitHub

refactor(xtask): use globals from node_modules instead of HTTP - #144

Merged
Boshen merged 3 commits into
mainfrom
refactor/use-node-modules-globals
Jan 14, 2026
Merged

Boshen merged 3 commits into
mainfrom
refactor/use-node-modules-globals

Conversation

Boshen commented Jan 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace HTTP fetch (ureq) with reading globals.json from node_modules
  • Remove ureq dependency in favor of serde_json for JSON parsing
  • Add setup-node step to CI workflows to ensure node_modules is available

This reduces Cargo.lock by ~730 lines by removing ureq and its transitive dependencies.

Test plan

  • cargo check -p xtask passes
  • cargo run -p xtask generates identical output
  • cargo test passes

🤖 Generated with Claude Code

Boshen and others added 3 commits January 14, 2026 15:35
Replace HTTP fetch from GitHub with reading globals.json from
node_modules. This removes the ureq dependency and its transitive
dependencies, significantly reducing Cargo.lock size.

- Replace ureq with serde_json for JSON parsing
- Read from node_modules/globals/globals.json
- Add setup-node step to CI workflows

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Boshen merged commit f927b95 into main Jan 14, 2026
4 checks passed
Boshen deleted the refactor/use-node-modules-globals branch January 14, 2026 07:56
Boshen mentioned this pull request Jan 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL