Skip to content

Commit 9213e86

Browse files
committed
Update Bun use rawstr4c
1 parent 1754a1a commit 9213e86

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/recipe/lang/Node.js/Bun.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ pl_nodejs_bun_setsrc (char *option)
3030
// 用的是 npm Registry 的源
3131
chsrc_yield_source (pl_nodejs_group);
3232

33-
char *content = "[install]\n"
34-
"registry = \"@url@\"\n";
33+
char *content = RAWSTR_pl_nodejs_bun_config;
3534

3635
content = xy_str_gsub (content, "@url@", source.url);
3736

src/recipe/lang/rawstr4c.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@
1919

2020

2121

22+
## Node.js
23+
24+
- namespace = `nodejs`
25+
26+
### Bun
27+
28+
- name = `bun_config`
29+
30+
```toml
31+
[install]
32+
registry = "@url@"
33+
```
34+
35+
<br>
36+
37+
38+
2239
## Java
2340

2441
- namespace = `java`

0 commit comments

Comments
 (0)