We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c15f00 commit e1d5348Copy full SHA for e1d5348
src/completions.ps1
@@ -37,7 +37,7 @@
37
return @();
38
}
39
40
- if ($commandAst -match "npm(.cmd)?\s+run") {
+ if ($commandAst -match "npm(.cmd)?\s+run(-script)?\s") {
41
$allScripts = Get-PackageJsonPath | Get-PackageJsonScripts -scriptFilter "$wordToComplete*"
42
$result=$allScripts | ForEach-Object {
43
# item1 is the script name, item2 is the script text (passed as tooltip)
0 commit comments