concurrently 7.2.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/.DS_Store
ADDED
|
Binary file
|
|
@@ -37,14 +37,15 @@ class CompletionListener {
|
|
|
37
37
|
else if (this.successCondition === 'last') {
|
|
38
38
|
return events[events.length - 1].exitCode === 0;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
const commandSyntaxMatch = this.successCondition.match(/^!?command-(.+)$/);
|
|
41
|
+
if (commandSyntaxMatch == null) {
|
|
41
42
|
// If not a `command-` syntax, then it's an 'all' condition or it's treated as such.
|
|
42
43
|
return events.every(({ exitCode }) => exitCode === 0);
|
|
43
44
|
}
|
|
44
45
|
// Check `command-` syntax condition.
|
|
45
46
|
// Note that a command's `name` is not necessarily unique,
|
|
46
47
|
// in which case all of them must meet the success condition.
|
|
47
|
-
const
|
|
48
|
+
const nameOrIndex = commandSyntaxMatch[1];
|
|
48
49
|
const targetCommandsEvents = events.filter(({ command, index }) => (command.name === nameOrIndex
|
|
49
50
|
|| index === Number(nameOrIndex)));
|
|
50
51
|
if (this.successCondition.startsWith('!')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "concurrently",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Run commands concurrently",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"@types/yargs": "^17.0.8",
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
|
61
61
|
"@typescript-eslint/parser": "^5.8.1",
|
|
62
|
-
"coveralls": "^
|
|
63
|
-
"eslint": "^
|
|
64
|
-
"jest": "^
|
|
65
|
-
"jest-create-mock-instance": "^
|
|
66
|
-
"ts-jest": "^
|
|
62
|
+
"coveralls-next": "^4.1.2",
|
|
63
|
+
"eslint": "^8.15.0",
|
|
64
|
+
"jest": "^27.5.1",
|
|
65
|
+
"jest-create-mock-instance": "^2.0.0",
|
|
66
|
+
"ts-jest": "^27.1.4",
|
|
67
67
|
"ts-node": "^10.4.0",
|
|
68
68
|
"typescript": "^4.5.4"
|
|
69
69
|
},
|