fix: add "run" to NO_SCRIPT error example (#3660)

close #3656
This commit is contained in:
Joël Galeran
2021-08-10 16:41:38 +02:00
committed by GitHub
parent 2f72e17193
commit bd442ecb53
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-script-runners": patch
---
fix: add "run" to NO_SCRIPT error example

View File

@@ -163,7 +163,7 @@ export async function handler (
if (rootManifest?.scripts?.[scriptName]) {
throw new PnpmError('NO_SCRIPT', `Missing script: ${scriptName}`, {
hint: `But ${scriptName} is present in the root of the workspace,
so you may run "pnpm -w ${scriptName}"`,
so you may run "pnpm -w run ${scriptName}"`,
})
}
}