]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
docs: note nightwatch + pnpm 10 users to run `pnpm approve-builds` after install
authorHaoqun Jiang <haoqunjiang@gmail.com>
Thu, 6 Feb 2025 16:15:02 +0000 (00:15 +0800)
committerCédric Exbrayat <cexbrayat@users.noreply.github.com>
Thu, 6 Feb 2025 19:05:20 +0000 (20:05 +0100)
utils/generateReadme.ts

index 36ae165724a2ed4612bd0e232ca49c96d41897f2..b5b50f765c907ba94b8444c2d91585b39c129936 100644 (file)
@@ -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