Skip to content

Commit

Permalink
docs: note nightwatch + pnpm 10 users to run pnpm approve-builds af…
Browse files Browse the repository at this point in the history
…ter install
  • Loading branch information
haoqunjiang authored and cexbrayat committed Feb 6, 2025
1 parent f528fba commit 9d804ae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion utils/generateReadme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d804ae

Please sign in to comment.