From: Haoqun Jiang Date: Thu, 6 Feb 2025 16:15:02 +0000 (+0800) Subject: docs: note nightwatch + pnpm 10 users to run `pnpm approve-builds` after install X-Git-Tag: v3.14.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d804ae9baf3eca63acc5800b50c1e87b212c770;p=thirdparty%2Fvuejs%2Fcreate-vue.git docs: note nightwatch + pnpm 10 users to run `pnpm approve-builds` after install --- diff --git a/utils/generateReadme.ts b/utils/generateReadme.ts index 36ae1657..b5b50f76 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