Skip to content

Commit ac6265d

Browse files
committed
Update dependencies
1 parent 2a75a33 commit ac6265d

33 files changed

+1343
-879
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ const { result } = concurrently(
376376
killOthers: ['failure', 'success'],
377377
restartTries: 3,
378378
cwd: path.resolve(__dirname, 'scripts'),
379-
}
379+
},
380380
);
381381
result.then(success, failure);
382382
```

bin/concurrently.spec.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ const run = (args: string, ctrlcWrapper?: boolean) => {
8989
/** The signal by which the child process was terminated. */
9090
signal: exit[1],
9191
};
92-
})
93-
)
92+
}),
93+
),
9494
);
9595

9696
const getLogLines = async (): Promise<string[]> => {
@@ -197,9 +197,9 @@ describe('exiting conditions', () => {
197197
// TODO: Flappy value due to race condition, sometimes killed by concurrently (exit code 1),
198198
// sometimes terminated on its own (exit code 0).
199199
// Related issue: https://github.com/open-cli-tools/concurrently/issues/283
200-
isWindows ? '(3221225786|0|1)' : 'SIGINT'
201-
)
202-
)
200+
isWindows ? '(3221225786|0|1)' : 'SIGINT',
201+
),
202+
),
203203
);
204204
});
205205
});
@@ -233,7 +233,7 @@ describe('--hide', () => {
233233
describe('--group', () => {
234234
it('groups output per process', async () => {
235235
const lines = await run(
236-
'--group "echo foo && node fixtures/sleep.mjs 1 && echo bar" "echo baz"'
236+
'--group "echo foo && node fixtures/sleep.mjs 1 && echo bar" "echo baz"',
237237
).getLogLines();
238238

239239
expect(lines.slice(0, 4)).toEqual([
@@ -257,7 +257,7 @@ describe('--names', () => {
257257

258258
it('is split using --name-separator arg', async () => {
259259
const lines = await run(
260-
'--names "foo|bar" --name-separator "|" "echo foo" "echo bar"'
260+
'--names "foo|bar" --name-separator "|" "echo foo" "echo bar"',
261261
).getLogLines();
262262

263263
expect(lines).toContainEqual(expect.stringContaining('[foo] foo'));
@@ -302,50 +302,50 @@ describe('--kill-others', () => {
302302

303303
expect(lines).toContainEqual(expect.stringContaining('[1] exit 0 exited with code 0'));
304304
expect(lines).toContainEqual(
305-
expect.stringContaining('Sending SIGTERM to other processes')
305+
expect.stringContaining('Sending SIGTERM to other processes'),
306306
);
307307
expect(lines).toContainEqual(
308308
expect.stringMatching(
309-
createKillMessage('[0] node fixtures/sleep.mjs 10', 'SIGTERM')
310-
)
309+
createKillMessage('[0] node fixtures/sleep.mjs 10', 'SIGTERM'),
310+
),
311311
);
312312
});
313313
});
314314

315315
it('kills on failure', async () => {
316316
const lines = await run(
317-
'--kill-others "node fixtures/sleep.mjs 10" "exit 1"'
317+
'--kill-others "node fixtures/sleep.mjs 10" "exit 1"',
318318
).getLogLines();
319319

320320
expect(lines).toContainEqual(expect.stringContaining('[1] exit 1 exited with code 1'));
321321
expect(lines).toContainEqual(expect.stringContaining('Sending SIGTERM to other processes'));
322322
expect(lines).toContainEqual(
323-
expect.stringMatching(createKillMessage('[0] node fixtures/sleep.mjs 10', 'SIGTERM'))
323+
expect.stringMatching(createKillMessage('[0] node fixtures/sleep.mjs 10', 'SIGTERM')),
324324
);
325325
});
326326
});
327327

328328
describe('--kill-others-on-fail', () => {
329329
it('does not kill on success', async () => {
330330
const lines = await run(
331-
'--kill-others-on-fail "node fixtures/sleep.mjs 0.5" "exit 0"'
331+
'--kill-others-on-fail "node fixtures/sleep.mjs 0.5" "exit 0"',
332332
).getLogLines();
333333

334334
expect(lines).toContainEqual(expect.stringContaining('[1] exit 0 exited with code 0'));
335335
expect(lines).toContainEqual(
336-
expect.stringContaining('[0] node fixtures/sleep.mjs 0.5 exited with code 0')
336+
expect.stringContaining('[0] node fixtures/sleep.mjs 0.5 exited with code 0'),
337337
);
338338
});
339339

340340
it('kills on failure', async () => {
341341
const lines = await run(
342-
'--kill-others-on-fail "node fixtures/sleep.mjs 10" "exit 1"'
342+
'--kill-others-on-fail "node fixtures/sleep.mjs 10" "exit 1"',
343343
).getLogLines();
344344

345345
expect(lines).toContainEqual(expect.stringContaining('[1] exit 1 exited with code 1'));
346346
expect(lines).toContainEqual(expect.stringContaining('Sending SIGTERM to other processes'));
347347
expect(lines).toContainEqual(
348-
expect.stringMatching(createKillMessage('[0] node fixtures/sleep.mjs 10', 'SIGTERM'))
348+
expect.stringMatching(createKillMessage('[0] node fixtures/sleep.mjs 10', 'SIGTERM')),
349349
);
350350
});
351351
});
@@ -365,14 +365,14 @@ describe('--handle-input', () => {
365365
expect(exit.code).toBe(0);
366366
expect(lines).toContainEqual(expect.stringContaining('[0] stop'));
367367
expect(lines).toContainEqual(
368-
expect.stringContaining('[0] node fixtures/read-echo.js exited with code 0')
368+
expect.stringContaining('[0] node fixtures/read-echo.js exited with code 0'),
369369
);
370370
});
371371
});
372372

373373
it('forwards input to process --default-input-target', async () => {
374374
const child = run(
375-
'-ki --default-input-target 1 "node fixtures/read-echo.js" "node fixtures/read-echo.js"'
375+
'-ki --default-input-target 1 "node fixtures/read-echo.js" "node fixtures/read-echo.js"',
376376
);
377377
child.log.subscribe((line) => {
378378
if (/\[1\] READING/.test(line)) {
@@ -385,7 +385,7 @@ describe('--handle-input', () => {
385385
expect(exit.code).toBeGreaterThan(0);
386386
expect(lines).toContainEqual(expect.stringContaining('[1] stop'));
387387
expect(lines).toContainEqual(
388-
expect.stringMatching(createKillMessage('[0] node fixtures/read-echo.js', 'SIGTERM'))
388+
expect.stringMatching(createKillMessage('[0] node fixtures/read-echo.js', 'SIGTERM')),
389389
);
390390
});
391391

@@ -402,7 +402,7 @@ describe('--handle-input', () => {
402402
expect(exit.code).toBeGreaterThan(0);
403403
expect(lines).toContainEqual(expect.stringContaining('[1] stop'));
404404
expect(lines).toContainEqual(
405-
expect.stringMatching(createKillMessage('[0] node fixtures/read-echo.js', 'SIGTERM'))
405+
expect.stringMatching(createKillMessage('[0] node fixtures/read-echo.js', 'SIGTERM')),
406406
);
407407
});
408408
});
@@ -411,12 +411,12 @@ describe('--timings', () => {
411411
const defaultTimestampFormatRegex = /\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3}/;
412412
const processStartedMessageRegex = (index: number, command: string) => {
413413
return new RegExp(
414-
`^\\[${index}] ${command} started at ${defaultTimestampFormatRegex.source}$`
414+
`^\\[${index}] ${command} started at ${defaultTimestampFormatRegex.source}$`,
415415
);
416416
};
417417
const processStoppedMessageRegex = (index: number, command: string) => {
418418
return new RegExp(
419-
`^\\[${index}] ${command} stopped at ${defaultTimestampFormatRegex.source} after (\\d|,)+ms$`
419+
`^\\[${index}] ${command} stopped at ${defaultTimestampFormatRegex.source} after (\\d|,)+ms$`,
420420
);
421421
};
422422

@@ -430,17 +430,17 @@ describe('--timings', () => {
430430
};
431431
it.each(Object.entries(timingsTests))('%s', async (_, commands) => {
432432
const lines = await run(
433-
`--timings ${commands.map((command) => `"${command}"`).join(' ')}`
433+
`--timings ${commands.map((command) => `"${command}"`).join(' ')}`,
434434
).getLogLines();
435435

436436
// Expect output to contain process start / stop messages for each command
437437
commands.forEach((command, index) => {
438438
const escapedCommand = escapeRegExp(command);
439439
expect(lines).toContainEqual(
440-
expect.stringMatching(processStartedMessageRegex(index, escapedCommand))
440+
expect.stringMatching(processStartedMessageRegex(index, escapedCommand)),
441441
);
442442
expect(lines).toContainEqual(
443-
expect.stringMatching(processStoppedMessageRegex(index, escapedCommand))
443+
expect.stringMatching(processStoppedMessageRegex(index, escapedCommand)),
444444
);
445445
});
446446

bin/concurrently.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const args = yargs(argsBeforeSep)
188188
})
189189
.group(
190190
['m', 'n', 'name-separator', 's', 'r', 'no-color', 'hide', 'g', 'timings', 'P'],
191-
'General'
191+
'General',
192192
)
193193
.group(['p', 'c', 'l', 't'], 'Prefix styling')
194194
.group(['i', 'default-input-target'], 'Input handling')
@@ -229,8 +229,8 @@ concurrently(
229229
timestampFormat: args.timestampFormat,
230230
timings: args.timings,
231231
additionalArguments: args.passthroughArguments ? argsAfterSep : undefined,
232-
}
232+
},
233233
).result.then(
234234
() => process.exit(0),
235-
() => process.exit(1)
235+
() => process.exit(1),
236236
);

bin/epilogue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const examplesString = examples
8181
.split('\n')
8282
.map((line) => ` ${line}`)
8383
.join('\n'),
84-
].join('\n\n')
84+
].join('\n\n'),
8585
)
8686
.join('\n\n');
8787

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,33 @@
6262
},
6363
"devDependencies": {
6464
"@hirez_io/observer-spy": "^2.2.0",
65-
"@swc/core": "^1.3.66",
66-
"@swc/jest": "^0.2.26",
67-
"@types/jest": "^29.5.2",
68-
"@types/lodash": "^4.14.195",
69-
"@types/node": "^14.18.51",
65+
"@swc/core": "^1.3.78",
66+
"@swc/jest": "^0.2.29",
67+
"@types/jest": "^29.5.3",
68+
"@types/lodash": "^4.14.197",
69+
"@types/node": "^14.18.54",
7070
"@types/shell-quote": "^1.7.1",
7171
"@types/supports-color": "^8.1.1",
7272
"@types/yargs": "^17.0.24",
73-
"@typescript-eslint/eslint-plugin": "^5.60.0",
74-
"@typescript-eslint/parser": "^5.60.0",
73+
"@typescript-eslint/eslint-plugin": "^6.4.1",
74+
"@typescript-eslint/parser": "^6.4.1",
7575
"coveralls-next": "^4.2.0",
7676
"ctrlc-wrapper": "^0.0.4",
77-
"esbuild": "~0.18.7",
78-
"eslint": "^8.43.0",
79-
"eslint-config-prettier": "^8.8.0",
80-
"eslint-plugin-import": "^2.27.5",
81-
"eslint-plugin-jest": "^27.2.2",
82-
"eslint-plugin-prettier": "^4.2.1",
77+
"esbuild": "~0.19.2",
78+
"eslint": "^8.47.0",
79+
"eslint-config-prettier": "^9.0.0",
80+
"eslint-plugin-import": "^2.28.1",
81+
"eslint-plugin-jest": "^27.2.3",
82+
"eslint-plugin-prettier": "^5.0.0",
8383
"eslint-plugin-simple-import-sort": "^10.0.0",
8484
"husky": "^8.0.3",
85-
"jest": "^29.5.0",
85+
"jest": "^29.6.3",
8686
"jest-create-mock-instance": "^2.0.0",
87-
"lint-staged": "^13.2.2",
88-
"prettier": "^2.8.8",
87+
"lint-staged": "^13.3.0",
88+
"prettier": "^3.0.2",
8989
"safe-publish-latest": "^2.0.0",
9090
"string-argv": "^0.3.2",
91-
"typescript": "~5.1.3"
91+
"typescript": "~5.1.6"
9292
},
9393
"files": [
9494
"dist",

0 commit comments

Comments
 (0)