Comparing version 8.1.6-dev.5d2ad78 to 8.1.6-dev.bff3551
@@ -25,3 +25,3 @@ import { type StdioOptions, type IOType, spawn, spawnSync } from 'node:child_process'; | ||
timeout?: Duration; | ||
timeoutSignal?: string; | ||
timeoutSignal?: NodeJS.Signals; | ||
stdio: StdioOptions; | ||
@@ -38,3 +38,3 @@ verbose: boolean; | ||
detached: boolean; | ||
preferLocal: boolean; | ||
preferLocal: boolean | string | string[]; | ||
spawn: typeof spawn; | ||
@@ -45,2 +45,3 @@ spawnSync: typeof spawnSync; | ||
kill: typeof kill; | ||
killSignal?: NodeJS.Signals; | ||
} | ||
@@ -90,3 +91,3 @@ export declare function syncProcessCwd(flag?: boolean): void; | ||
get signal(): AbortSignal | undefined; | ||
kill(signal?: string): Promise<void>; | ||
kill(signal?: NodeJS.Signals | undefined): Promise<void>; | ||
stdio(stdin: IOType, stdout?: IOType, stderr?: IOType): ProcessPromise; | ||
@@ -99,3 +100,3 @@ nothrow(): ProcessPromise; | ||
isNothrow(): boolean; | ||
timeout(d: Duration, signal?: string): ProcessPromise; | ||
timeout(d: Duration, signal?: NodeJS.Signals | undefined): ProcessPromise; | ||
halt(): ProcessPromise; | ||
@@ -129,3 +130,3 @@ isHalted(): boolean; | ||
export declare function cd(dir: string | ProcessOutput): void; | ||
export declare function kill(pid: number, signal?: string): Promise<void>; | ||
export declare function kill(pid: number, signal?: NodeJS.Signals | undefined): Promise<void>; | ||
export type LogEntry = { | ||
@@ -132,0 +133,0 @@ verbose?: boolean; |
@@ -6,3 +6,3 @@ export declare function tempdir(prefix?: string): string; | ||
export declare function isString(obj: any): obj is string; | ||
export declare function preferNmBin(env: NodeJS.ProcessEnv, ...dirs: (string | undefined)[]): { | ||
export declare function preferLocalBin(env: NodeJS.ProcessEnv, ...dirs: (string | undefined)[]): { | ||
[x: string]: string | undefined; | ||
@@ -9,0 +9,0 @@ TZ?: string; |
@@ -12,3 +12,3 @@ "use strict"; | ||
parseDuration, | ||
preferNmBin, | ||
preferLocalBin, | ||
quote, | ||
@@ -29,3 +29,3 @@ quotePowerShell, | ||
parseDuration, | ||
preferNmBin, | ||
preferLocalBin, | ||
quote, | ||
@@ -32,0 +32,0 @@ quotePowerShell, |
{ | ||
"name": "zx", | ||
"version": "8.1.6-dev.5d2ad78", | ||
"version": "8.1.6-dev.bff3551", | ||
"description": "A tool for writing better scripts", | ||
@@ -80,3 +80,3 @@ "type": "module", | ||
"test:smoke:tsx": "tsx test/smoke/ts.test.ts", | ||
"test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js", | ||
"test:smoke:tsc": "cd test/smoke && mkdir -p node_modules && ln -s ../../../ ./node_modules/zx; ../../node_modules/typescript/bin/tsc -v && ../../node_modules/typescript/bin/tsc --esModuleInterop --module node16 --rootDir . --outdir ./temp ts.test.ts && node ./temp/ts.test.js", | ||
"test:smoke:ts-node": "node --loader ts-node/esm test/smoke/ts.test.ts", | ||
@@ -118,3 +118,3 @@ "test:smoke:bun": "bun test ./test/smoke/bun.test.js", | ||
"globby": "^14.0.2", | ||
"madge": "^7.0.0", | ||
"madge": "^8.0.0", | ||
"minimist": "^1.2.8", | ||
@@ -121,0 +121,0 @@ "node-fetch-native": "^1.6.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
846866
23926