From ae36880a4a1dfb7fc619029ce6fad46278f654c3 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 7 Feb 2025 00:15:02 +0800 Subject: [PATCH] docs: note nightwatch + pnpm 10 users to run `pnpm approve-builds` after install --- utils/generateReadme.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/generateReadme.ts b/utils/generateReadme.ts index 36ae16572..b5b50f765 100644 --- a/utils/generateReadme.ts +++ b/utils/generateReadme.ts @@ -39,8 +39,14 @@ See [Vite Configuration Reference](https://vite.dev/config/). ` + let installCommand = commandFor('install') + if (packageManager === 'pnpm' && needsNightwatch) { + // TODO: remove the "for pnpm 10+" note when pnpm 10 is widely adopted + installCommand += `\npnpm approve-builds # for pnpm 10+` + } + let npmScriptsDescriptions = `\`\`\`sh -${commandFor('install')} +${installCommand} \`\`\` ### Compile and Hot-Reload for Development