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
Provenance
- Commit
08eb743- Tree
434e9a6- Author
ehmicky <ehmicky@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
ccfa412
9 files changed+48 added−43 removed
modified:types/arguments/options.d.ts+1 added-1 removed
281 unmodified lines282 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.283 284 @default 5000285 */286- forceKillAfterDelay?: Unless<IsSync, number | false>;286+ readonly forceKillAfterDelay?: Unless<IsSync, number | false>;287 288 /**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 linesadded:types/return/ignore.d.ts+26 added
1234567891011121314151617181920212223242526import type {NoStreamStdioOption, StdioOptionCommon} from '../stdio/type';import type {IsInputFd} from '../stdio/direction';import type {FdStdioOption} from '../stdio/option';import type {FdSpecificOption} from '../arguments/specific';import type {CommonOptions} from '../arguments/options';
// Whether `result.stdin|stdout|stderr|all|stdio[*]` is `undefined`export type IgnoresResultOutput< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = FdSpecificOption<OptionsType['buffer'], FdNumber> extends false ? true : IsInputFd<FdNumber, OptionsType> extends true ? true : IgnoresSubprocessOutput<FdNumber, OptionsType>;
// Whether `subprocess.stdout|stderr|all` is `undefined|null`export type IgnoresSubprocessOutput< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = IgnoresOutput<FdNumber, FdStdioOption<FdNumber, OptionsType>>;
type IgnoresOutput< FdNumber extends string, StdioOptionType extends StdioOptionCommon,> = StdioOptionType extends NoStreamStdioOption<FdNumber> ? true : false;deleted:types/return/ignore.ts-26 removed
1234567891011121314151617181920212223242526import type {NoStreamStdioOption, StdioOptionCommon} from '../stdio/type';import type {IsInputFd} from '../stdio/direction';import type {FdStdioOption} from '../stdio/option';import type {FdSpecificOption} from '../arguments/specific';import type {CommonOptions} from '../arguments/options';
// Whether `result.stdin|stdout|stderr|all|stdio[*]` is `undefined`export type IgnoresResultOutput< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = FdSpecificOption<OptionsType['buffer'], FdNumber> extends false ? true : IsInputFd<FdNumber, OptionsType> extends true ? true : IgnoresSubprocessOutput<FdNumber, OptionsType>;
// Whether `subprocess.stdout|stderr|all` is `undefined|null`export type IgnoresSubprocessOutput< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = IgnoresOutput<FdNumber, FdStdioOption<FdNumber, OptionsType>>;
type IgnoresOutput< FdNumber extends string, StdioOptionType extends StdioOptionCommon,> = StdioOptionType extends NoStreamStdioOption<FdNumber> ? true : false;modified:types/stdio/option.d.ts+6 added-1 removed
9 unmodified lines101112131415161718192021225 unmodified lines282930312732333435369 unmodified lines9 unmodified lines// `options.stdin|stdout|stderr|stdio` for a given file descriptorexport type FdStdioOption< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = Extract<FdStdioOptionProperty<FdNumber, OptionsType>, StdioOptionCommon>;
type FdStdioOptionProperty< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = string extends FdNumber ? StdioOptionCommon : FdNumber extends keyof StandardStreams ? StandardStreams[FdNumber] extends keyof OptionsType ? OptionsType[StandardStreams[FdNumber]] extends undefined5 unmodified lines// `options.stdio[FdNumber]`, excluding `options.stdin|stdout|stderr`export type FdStdioArrayOption< FdNumber extends string, OptionsType extends CommonOptions = CommonOptions,> = FdStdioArrayOptionProperty<FdNumber, StdioOptionNormalizedArray<OptionsType>>;> = Extract<FdStdioArrayOptionProperty<FdNumber, StdioOptionNormalizedArray<OptionsType>>, StdioOptionCommon>;
type FdStdioArrayOptionProperty< FdNumber extends string, StdioOptionsType extends StdioOptionsProperty,9 unmodified linesmodified:types/stdio/type.d.ts+2 added-2 removed
13 unmodified lines14 } from '../transform/normalize';15 16 type IsStandardStream<FdNumber extends string> = FdNumber extends keyof StandardStreams ? true : false;17 18-export type StandardStreams = ['stdin', 'stdout', 'stderr'];18+export type StandardStreams = readonly ['stdin', 'stdout', 'stderr'];19 20 // When `options.stdin|stdout|stderr|stdio` is set to one of those values, no stream is created21 export type NoStreamStdioOption<FdNumber extends string> =22 | 'ignore'24 unmodified lines47 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 linesmodified:types/subprocess/stdout.d.ts+1 added-1 removed
2 unmodified lines34567789101111 unmodified lines2 unmodified linesimport type {IgnoresSubprocessOutput} from '../return/ignore';import type {Options} from '../arguments/options';
// `subprocess.stdin|stdout|stderr|stdio`type SubprocessStdioStream<export type SubprocessStdioStream< FdNumber extends string, OptionsType extends Options = Options,> = SubprocessStream<FdNumber, IgnoresSubprocessOutput<FdNumber, OptionsType>, OptionsType>;
11 unmodified linesmodified:types/transform/normalize.d.ts+9 added-9 removed
18 unmodified lines192021222323242526272828293031323333343536373838394041424343444546474849484950515253545554555618 unmodified linesexport type GeneratorTransformFull<IsSync extends boolean> = { /** Map or filter the input or output of the subprocess. */ transform: GeneratorTransform<IsSync>; readonly transform: GeneratorTransform<IsSync>;
/** Create additional lines after the last one. */ final?: GeneratorFinal<IsSync>; readonly final?: GeneratorFinal<IsSync>;
/** If `true`, iterate over arbitrary chunks of `Uint8Array`s instead of line `string`s. */ binary?: boolean; readonly binary?: boolean;
/** If `true`, keep newlines in each `line` argument. Also, this allows multiple `yield`s to produces a single line. */ preserveNewlines?: boolean; readonly preserveNewlines?: boolean;
/** If `true`, allow `transformOptions.transform` and `transformOptions.final` to return any type, not just `string` or `Uint8Array`. */ objectMode?: boolean; readonly objectMode?: boolean;};
// `options.std*: Duplex`export type DuplexTransform = { transform: Duplex; objectMode?: boolean; readonly transform: Duplex; readonly objectMode?: boolean;};
// `options.std*: TransformStream`export type WebTransform = { transform: TransformStream; objectMode?: boolean; readonly transform: TransformStream; readonly objectMode?: boolean;};modified:types/pipe.d.ts+1 added-1 removed
25 unmodified lines26 readonly unpipeSignal?: AbortSignal;27 };28 29 // `subprocess.pipe()`30-type PipableSubprocess = {30+export 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.33 34 This follows the same syntax as `execa(file, arguments?, options?)` except both regular options and pipe-specific options can be specified.32 unmodified linesmodified:package.json+2 added-2 removed
62 unmodified lines63 },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