Skip to content

Commit

Permalink
fix - recommend running install after bit env set, replace and updated (
Browse files Browse the repository at this point in the history
  • Loading branch information
itaymendel authored Jan 22, 2024
1 parent 3f19d32 commit 0b585b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class EnvsReplaceCmd implements Command {
const componentIds = components.map((comp) => comp.id);
await this.workspace.setEnvToComponents(envId, componentIds);
return `added ${chalk.bold(envId.toString())} env to the following component(s):
${componentIds.map((compId) => compId.toString()).join('\n')}`;
${componentIds.map((compId) => compId.toString()).join('\n')}\n
please run 'bit install' for env replace changes to take effect`;
}
}
3 changes: 2 additions & 1 deletion scopes/workspace/workspace/envs-subcommands/envs-set.cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class EnvsSetCmd implements Command {
const componentIds = await this.workspace.idsByPattern(pattern);
await this.workspace.setEnvToComponents(envId, componentIds);
return `assigned ${chalk.bold(envId.toString())} env to the following component(s):
${componentIds.map((compId) => compId.toString()).join('\n')}`;
${componentIds.map((compId) => compId.toString()).join('\n')}\n
please run 'bit install' for env replace changes to take effect`;
}
}

0 comments on commit 0b585b9

Please sign in to comment.