Skip to content

Commit 60e611e

Browse files
lonttenccmywish
authored andcommitted
fix bunfig.toml path
全局配置应该是 ~/.bunfig.toml 文件,项目级配置应该是在 项目根目录的 bunfig.toml 文件。~/.bun/bunfig.toml是无效的路径。
1 parent f705b3f commit 60e611e

File tree

1 file changed

+3
-3
lines changed
  • src/recipe/lang/Node.js

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
void
1414
pl_nodejs_bun_getsrc (char *option)
1515
{
16-
chsrc_view_file ("~/.bun/bunfig.toml");
16+
chsrc_view_file ("~/.bunfig.toml");
1717
}
1818

1919

2020
/**
21-
* @consult https://bun.sh/guides/install/custom-registry
21+
* @consult https://bun.sh/docs/runtime/bunfig#global-vs-local
2222
* @consult https://github.com/RubyMetric/chsrc/issues/83
2323
*
2424
* chsrc set bun
@@ -32,7 +32,7 @@ pl_nodejs_bun_setsrc (char *option)
3232
char *file = xy_strjoin(3, "[install]\n"
3333
"registry = \"", source.url, "\"");
3434

35-
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.bun/bunfig.toml"), " 文件中:"));
35+
chsrc_note2 (xy_strjoin (3, "(全局配置)请您手动写入以下内容到 ", xy_uniform_path ("~/.bunfig.toml"), " 文件中(如果只是配置项目级,则写入到项目根目录的 bunfig.toml 文件中。):"));
3636
puts (file);
3737

3838
chsrc_conclude (&source, setsrc_type);

0 commit comments

Comments
 (0)