Skip to content

Commit a3194cd

Browse files
authored
Merge pull request #66 from joscha/run-script-to-run
fix: use run command instead of run-script
2 parents 0d3671a + e874a96 commit a3194cd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/npm-run-all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ We can use placeholders to give the arguments preceded by `--` to scripts.
165165
> npm-run-all build "start-server -- --port {1}" -- 8080
166166
```
167167

168-
This is useful to pass through arguments from `npm run-script` command.
168+
This is useful to pass through arguments from `npm run` command.
169169

170170
```json
171171
{

docs/run-p.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ We can use placeholders to give the arguments preceded by `--` to scripts.
125125
> run-p "start-server -- --port {1}" -- 8080
126126
```
127127

128-
This is useful to pass through arguments from `npm run-script` command.
128+
This is useful to pass through arguments from `npm run` command.
129129

130130
```json
131131
{

docs/run-s.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ We can use placeholders to give the arguments preceded by `--` to scripts.
120120
> run-s build "start-server -- --port {1}" -- 8080
121121
```
122122

123-
This is useful to pass through arguments from `npm run-script` command.
123+
This is useful to pass through arguments from `npm run` command.
124124

125125
```json
126126
{

src/lib/run-task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ module.exports = function runTask(
124124
// Execute.
125125
cp = spawn(
126126
"npm",
127-
["run-script"].concat(prefixOptions, parseArgs(task)),
127+
["run"].concat(prefixOptions, parseArgs(task)),
128128
{stdio: [stdinKind, stdoutKind, stderrKind]}
129129
)
130130

0 commit comments

Comments
 (0)