From 9213e866433cb469cefca7a28b0d7c57f245a281 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Tue, 22 Jul 2025 19:56:19 +0800 Subject: [PATCH] Update `Bun` use `rawstr4c` --- src/recipe/lang/Node.js/Bun.c | 3 +-- src/recipe/lang/rawstr4c.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/recipe/lang/Node.js/Bun.c b/src/recipe/lang/Node.js/Bun.c index 823a7fc..c06cb8e 100644 --- a/src/recipe/lang/Node.js/Bun.c +++ b/src/recipe/lang/Node.js/Bun.c @@ -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); diff --git a/src/recipe/lang/rawstr4c.md b/src/recipe/lang/rawstr4c.md index db9f4e6..70770ad 100644 --- a/src/recipe/lang/rawstr4c.md +++ b/src/recipe/lang/rawstr4c.md @@ -19,6 +19,23 @@ +## Node.js + +- namespace = `nodejs` + +### Bun + +- name = `bun_config` + +```toml +[install] +registry = "@url@" +``` + +
+ + + ## Java - namespace = `java`