Update Bun use rawstr4c

This commit is contained in:
Aoran Zeng 2025-07-22 19:56:19 +08:00
parent 1754a1a943
commit 9213e86643
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 18 additions and 2 deletions

View File

@ -30,8 +30,7 @@ pl_nodejs_bun_setsrc (char *option)
// 用的是 npm Registry 的源
chsrc_yield_source (pl_nodejs_group);
char *content = "[install]\n"
"registry = \"@url@\"\n";
char *content = RAWSTR_pl_nodejs_bun_config;
content = xy_str_gsub (content, "@url@", source.url);

View File

@ -19,6 +19,23 @@
## Node.js
- namespace = `nodejs`
### Bun
- name = `bun_config`
```toml
[install]
registry = "@url@"
```
<br>
## Java
- namespace = `java`