Fix group target

This commit is contained in:
Aoran Zeng
2025-08-10 20:14:30 +08:00
parent 827a26951b
commit 915dbe1477
12 changed files with 37 additions and 31 deletions

View File

@@ -50,7 +50,7 @@ void
pl_js_bun_setsrc (char *option)
{
// 用的是 npm Registry 的源
chsrc_yield_source (pl_js_group);
Source_t source = chsrc_yield_source_and_confirm (pl_js_group_target, option);
char *content = RAWSTR_pl_js_bun_config;

View File

@@ -58,9 +58,9 @@ pl_js_yarn_getsrc (char *option)
void
pl_js_yarn_setsrc (char *option)
{
chsrc_yield_source (pl_js_group);
Source_t source = chsrc_yield_source (pl_js_group_target, option);
if (chsrc_in_standalone_mode())
chsrc_confirm_source();
chsrc_confirm_source(&source);
char *cmd = NULL;

View File

@@ -15,6 +15,7 @@ void
pl_js_group_prelude (void)
{
use_this(pl_js_group);
chef_allow_gsr(pl_js_group);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");
@@ -25,10 +26,6 @@ pl_js_group_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this,0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, PartiallyCan,
"支持 npm, yarn v2, pnpm, 不支持 yarn v1"
"Support npm, yarn v2, pnpm, not yarn v1");
@@ -54,6 +51,7 @@ void
pl_js_nodejs_binary_prelude (void)
{
use_this(pl_js_nodejs_binary);
chef_allow_gsr(pl_js_group);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");
@@ -64,10 +62,6 @@ pl_js_nodejs_binary_prelude (void)
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
chef_allow_reset();
chef_forbid_local_mode (this);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -43,9 +43,9 @@ pl_js_npm_getsrc (char *option)
void
pl_js_npm_setsrc (char *option)
{
chsrc_yield_source (pl_js_group);
Source_t source = chsrc_yield_source (pl_js_group_target, option);
if (chsrc_in_standalone_mode())
chsrc_confirm_source();
chsrc_confirm_source(&source);
char *cmd = NULL;

View File

@@ -43,9 +43,9 @@ pl_js_pnpm_getsrc (char *option)
void
pl_js_pnpm_setsrc (char *option)
{
chsrc_yield_source (pl_js_group);
Source_t source = chsrc_yield_source (pl_js_group_target, option);
if (chsrc_in_standalone_mode())
chsrc_confirm_source();
chsrc_confirm_source(&source);
char *cmd = NULL;