cli: document yarn install workaround and tweak upgrade helper messaging

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-02-10 17:51:59 +01:00
parent e9ee1f91e1
commit d2927cb5dc
+4 -1
View File
@@ -430,7 +430,7 @@ export async function bumpBackstageJsonVersion(version: string) {
yellow(
`Upgraded from release ${green(prevVersion)} to ${green(
version,
)}, please review the app changes:`,
)}, please review these template changes:`,
),
);
console.log();
@@ -466,6 +466,9 @@ async function runYarnInstall() {
await run('yarn', ['install'], {
env: {
FORCE_COLOR: 'true',
// We filter out all of the npm_* environment variables that are added when
// executing through yarn. This works around an issue where these variables
// incorrectly override local yarn or npm config in the project directory.
...Object.fromEntries(
Object.entries(process.env).map(([name, value]) =>
name.startsWith('npm_') ? [name, undefined] : [name, value],