Skip to content
Myr

Upgrade `tsd` and `c8` (#982)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent ccfa412 · Browse files · 9 files+48 added−43 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

9 files+48 added−43 removed

  • other:+48 added−43 removed

9 files+48 added−43 removed

modified:types/arguments/options.d.ts+1 added-1 removed
281 unmodified lines
282 Also, this does not work on Windows, because Windows [doesn't support signals](https://nodejs.org/api/process.html#process_signal_events): `SIGKILL` and `SIGTERM` both terminate the subprocess immediately. Other packages (such as [`taskkill`](https://github.com/sindresorhus/taskkill)) can be used to achieve fail-safe termination on Windows.283284 @default 5000285 */286 forceKillAfterDelay?: Unless<IsSync, number | false>;286 readonly forceKillAfterDelay?: Unless<IsSync, number | false>;287288 /**289 If `true`, no quoting or escaping of arguments is done on Windows. Ignored on other platforms. This is set to `true` automatically when the `shell` option is `true`.290
140 unmodified lines
added:types/return/ignore.d.ts+26 added
deleted:types/return/ignore.ts-26 removed
modified:types/stdio/option.d.ts+6 added-1 removed
modified:types/stdio/type.d.ts+2 added-2 removed
13 unmodified lines
14} from '../transform/normalize';1516type IsStandardStream<FdNumber extends string> = FdNumber extends keyof StandardStreams ? true : false;1718export type StandardStreams = ['stdin', 'stdout', 'stderr'];18export type StandardStreams = readonly ['stdin', 'stdout', 'stderr'];1920// When `options.stdin|stdout|stderr|stdio` is set to one of those values, no stream is created21export type NoStreamStdioOption<FdNumber extends string> =22 | 'ignore'
24 unmodified lines
47 IsArray extends boolean,48> =49 | SimpleStdioOption<IsSync, IsExtra, IsArray>50 | URL51 | {file: string}51 | {readonly file: string}52 | GeneratorTransform<IsSync>53 | GeneratorTransformFull<IsSync>54 | Unless<And<Not<IsSync>, IsArray>, 3 | 4 | 5 | 6 | 7 | 8 | 9>55 | Unless<Or<IsSync, IsArray>, 'ipc'>
114 unmodified lines
modified:types/subprocess/stdout.d.ts+1 added-1 removed
modified:types/transform/normalize.d.ts+9 added-9 removed
modified:types/pipe.d.ts+1 added-1 removed
25 unmodified lines
26 readonly unpipeSignal?: AbortSignal;27};2829// `subprocess.pipe()`30type PipableSubprocess = {30export type PipableSubprocess = {31 /**32 [Pipe](https://nodejs.org/api/stream.html#readablepipedestination-options) the subprocess' `stdout` to a second Execa subprocess' `stdin`. This resolves with that second subprocess' result. If either subprocess is rejected, this is rejected with that subprocess' error instead.3334 This follows the same syntax as `execa(file, arguments?, options?)` except both regular options and pipe-specific options can be specified.
32 unmodified lines
modified:package.json+2 added-2 removed
62 unmodified lines
63 },64 "devDependencies": {65 "@types/node": "^20.8.9",66 "ava": "^6.0.1",67 "c8": "^8.0.1",67 "c8": "^9.1.0",68 "get-node": "^15.0.0",69 "is-running": "^2.1.0",70 "p-event": "^6.0.0",71 "path-exists": "^5.0.0",72 "path-key": "^4.0.0",73 "tempfile": "^5.0.0",74 "tsd": "^0.29.0",74 "tsd": "^0.31.0",75 "which": "^4.0.0",76 "xo": "^0.58.0"77 },78 "c8": {
22 unmodified lines