mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-13 09:12:59 +08:00
fix bunfig.toml path
全局配置应该是 ~/.bunfig.toml 文件,项目级配置应该是在 项目根目录的 bunfig.toml 文件。~/.bun/bunfig.toml是无效的路径。
This commit is contained in:
parent
f705b3fa48
commit
60e611edd4
|
@ -13,12 +13,12 @@
|
||||||
void
|
void
|
||||||
pl_nodejs_bun_getsrc (char *option)
|
pl_nodejs_bun_getsrc (char *option)
|
||||||
{
|
{
|
||||||
chsrc_view_file ("~/.bun/bunfig.toml");
|
chsrc_view_file ("~/.bunfig.toml");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @consult https://bun.sh/guides/install/custom-registry
|
* @consult https://bun.sh/docs/runtime/bunfig#global-vs-local
|
||||||
* @consult https://github.com/RubyMetric/chsrc/issues/83
|
* @consult https://github.com/RubyMetric/chsrc/issues/83
|
||||||
*
|
*
|
||||||
* chsrc set bun
|
* chsrc set bun
|
||||||
|
@ -32,7 +32,7 @@ pl_nodejs_bun_setsrc (char *option)
|
||||||
char *file = xy_strjoin(3, "[install]\n"
|
char *file = xy_strjoin(3, "[install]\n"
|
||||||
"registry = \"", source.url, "\"");
|
"registry = \"", source.url, "\"");
|
||||||
|
|
||||||
chsrc_note2 (xy_strjoin (3, "请您手动写入以下内容到 ", xy_uniform_path ("~/.bun/bunfig.toml"), " 文件中:"));
|
chsrc_note2 (xy_strjoin (3, "(全局配置)请您手动写入以下内容到 ", xy_uniform_path ("~/.bunfig.toml"), " 文件中(如果只是配置项目级,则写入到项目根目录的 bunfig.toml 文件中。):"));
|
||||||
puts (file);
|
puts (file);
|
||||||
|
|
||||||
chsrc_conclude (&source, setsrc_type);
|
chsrc_conclude (&source, setsrc_type);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user