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

close #3656
This commit is contained in:
Joël Galeran authored and GitHub committed 2021-08-10 17:41:38 +03:00
1 parent 2f72e17193
commit bd442ecb53
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-script-runners": patch
---
fix: add "run" to NO_SCRIPT error example
@@ -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}"`,
})
}
}