From 3ade4e600a76ff9af086662445ab3f8478b8ac29 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 20 Dec 2025 14:08:13 -0800 Subject: [PATCH 1/3] chore: bump teen_process --- lib/subcommands/addmedia.ts | 4 ++-- lib/subcommands/openurl.ts | 5 ++--- lib/subcommands/spawn.ts | 4 ++-- lib/types.ts | 4 ++-- package.json | 3 +-- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/lib/subcommands/addmedia.ts b/lib/subcommands/addmedia.ts index 403150c..17206fb 100644 --- a/lib/subcommands/addmedia.ts +++ b/lib/subcommands/addmedia.ts @@ -1,5 +1,5 @@ import type { Simctl } from '../simctl'; -import type { TeenProcessExecResult } from 'teen_process'; +import type { ExecResult } from 'teen_process'; /** * Add the particular media file to Simulator's library. @@ -12,7 +12,7 @@ import type { TeenProcessExecResult } from 'teen_process'; * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ -export async function addMedia (this: Simctl, filePath: string): Promise> { +export async function addMedia (this: Simctl, filePath: string): Promise> { return await this.exec('addmedia', { args: [this.requireUdid('addmedia'), filePath], }); diff --git a/lib/subcommands/openurl.ts b/lib/subcommands/openurl.ts index 74f8043..deddeb2 100644 --- a/lib/subcommands/openurl.ts +++ b/lib/subcommands/openurl.ts @@ -1,5 +1,5 @@ import type { Simctl } from '../simctl'; -import type { TeenProcessExecResult } from 'teen_process'; +import type { ExecResult } from 'teen_process'; /** * Open URL scheme on Simulator. iOS will automatically try @@ -13,9 +13,8 @@ import type { TeenProcessExecResult } from 'teen_process'; * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ -export async function openUrl (this: Simctl, url: string): Promise> { +export async function openUrl (this: Simctl, url: string): Promise> { return await this.exec('openurl', { args: [this.requireUdid('openurl'), url], }); } - diff --git a/lib/subcommands/spawn.ts b/lib/subcommands/spawn.ts index b38b7f1..b0304ec 100644 --- a/lib/subcommands/spawn.ts +++ b/lib/subcommands/spawn.ts @@ -1,6 +1,6 @@ import _ from 'lodash'; import type { Simctl } from '../simctl'; -import type { TeenProcessExecResult, SubProcess } from 'teen_process'; +import type { ExecResult, SubProcess } from 'teen_process'; /** * Spawn the particular process on Simulator. @@ -17,7 +17,7 @@ export async function spawnProcess ( this: Simctl, args: string | string[], env: Record = {} -): Promise> { +): Promise> { if (_.isEmpty(args)) { throw new Error('Spawn arguments are required'); } diff --git a/lib/types.ts b/lib/types.ts index 8630998..d9f165b 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,4 +1,4 @@ -import type { SubProcess, TeenProcessExecResult } from 'teen_process'; +import type { SubProcess, ExecResult as TExecResult } from 'teen_process'; /** * XCRun configuration @@ -141,7 +141,7 @@ export interface SimCreationOpts { */ export type ExecResult = T extends AsyncExecOpts ? SubProcess - : TeenProcessExecResult; + : TExecResult; /** * Boot monitor options diff --git a/package.json b/package.json index 4323a44..9ed248a 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "lodash": "^4.2.1", "rimraf": "^6.0.1", "semver": "^7.0.0", - "teen_process": "^3.0.0", + "teen_process": "^4.0.3", "uuid": "^13.0.0", "which": "^6.0.0" }, @@ -69,7 +69,6 @@ "@types/lodash": "^4.14.196", "@types/mocha": "^10.0.1", "@types/node": "^25.0.0", - "@types/teen_process": "^2.0.2", "appium-xcode": "^6.0.0", "chai": "^6.0.0", "chai-as-promised": "^8.0.0", From 1f4ab452c672d5b8bff37c302e3639a9f6dbd2ef Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 20 Dec 2025 14:15:07 -0800 Subject: [PATCH 2/3] correct --- lib/subcommands/addmedia.ts | 2 +- lib/subcommands/openurl.ts | 2 +- lib/subcommands/spawn.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/subcommands/addmedia.ts b/lib/subcommands/addmedia.ts index 17206fb..9fbd463 100644 --- a/lib/subcommands/addmedia.ts +++ b/lib/subcommands/addmedia.ts @@ -12,7 +12,7 @@ import type { ExecResult } from 'teen_process'; * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ -export async function addMedia (this: Simctl, filePath: string): Promise> { +export async function addMedia (this: Simctl, filePath: string): Promise> { return await this.exec('addmedia', { args: [this.requireUdid('addmedia'), filePath], }); diff --git a/lib/subcommands/openurl.ts b/lib/subcommands/openurl.ts index deddeb2..9dd2428 100644 --- a/lib/subcommands/openurl.ts +++ b/lib/subcommands/openurl.ts @@ -13,7 +13,7 @@ import type { ExecResult } from 'teen_process'; * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ -export async function openUrl (this: Simctl, url: string): Promise> { +export async function openUrl (this: Simctl, url: string): Promise> { return await this.exec('openurl', { args: [this.requireUdid('openurl'), url], }); diff --git a/lib/subcommands/spawn.ts b/lib/subcommands/spawn.ts index b0304ec..4c4e4ef 100644 --- a/lib/subcommands/spawn.ts +++ b/lib/subcommands/spawn.ts @@ -17,7 +17,7 @@ export async function spawnProcess ( this: Simctl, args: string | string[], env: Record = {} -): Promise> { +): Promise> { if (_.isEmpty(args)) { throw new Error('Spawn arguments are required'); } From ed99e05e1791de42b6261da9267096d2678186a9 Mon Sep 17 00:00:00 2001 From: Kazuaki Matsuo Date: Sat, 20 Dec 2025 16:23:24 -0800 Subject: [PATCH 3/3] use newer fixed version --- lib/subcommands/addmedia.ts | 4 ++-- lib/subcommands/openurl.ts | 4 ++-- lib/subcommands/spawn.ts | 4 ++-- lib/types.ts | 4 ++-- package.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/subcommands/addmedia.ts b/lib/subcommands/addmedia.ts index 9fbd463..403150c 100644 --- a/lib/subcommands/addmedia.ts +++ b/lib/subcommands/addmedia.ts @@ -1,5 +1,5 @@ import type { Simctl } from '../simctl'; -import type { ExecResult } from 'teen_process'; +import type { TeenProcessExecResult } from 'teen_process'; /** * Add the particular media file to Simulator's library. @@ -12,7 +12,7 @@ import type { ExecResult } from 'teen_process'; * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ -export async function addMedia (this: Simctl, filePath: string): Promise> { +export async function addMedia (this: Simctl, filePath: string): Promise> { return await this.exec('addmedia', { args: [this.requireUdid('addmedia'), filePath], }); diff --git a/lib/subcommands/openurl.ts b/lib/subcommands/openurl.ts index 9dd2428..550b31d 100644 --- a/lib/subcommands/openurl.ts +++ b/lib/subcommands/openurl.ts @@ -1,5 +1,5 @@ import type { Simctl } from '../simctl'; -import type { ExecResult } from 'teen_process'; +import type { TeenProcessExecResult } from 'teen_process'; /** * Open URL scheme on Simulator. iOS will automatically try @@ -13,7 +13,7 @@ import type { ExecResult } from 'teen_process'; * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ -export async function openUrl (this: Simctl, url: string): Promise> { +export async function openUrl (this: Simctl, url: string): Promise> { return await this.exec('openurl', { args: [this.requireUdid('openurl'), url], }); diff --git a/lib/subcommands/spawn.ts b/lib/subcommands/spawn.ts index 4c4e4ef..b38b7f1 100644 --- a/lib/subcommands/spawn.ts +++ b/lib/subcommands/spawn.ts @@ -1,6 +1,6 @@ import _ from 'lodash'; import type { Simctl } from '../simctl'; -import type { ExecResult, SubProcess } from 'teen_process'; +import type { TeenProcessExecResult, SubProcess } from 'teen_process'; /** * Spawn the particular process on Simulator. @@ -17,7 +17,7 @@ export async function spawnProcess ( this: Simctl, args: string | string[], env: Record = {} -): Promise> { +): Promise> { if (_.isEmpty(args)) { throw new Error('Spawn arguments are required'); } diff --git a/lib/types.ts b/lib/types.ts index d9f165b..8630998 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,4 +1,4 @@ -import type { SubProcess, ExecResult as TExecResult } from 'teen_process'; +import type { SubProcess, TeenProcessExecResult } from 'teen_process'; /** * XCRun configuration @@ -141,7 +141,7 @@ export interface SimCreationOpts { */ export type ExecResult = T extends AsyncExecOpts ? SubProcess - : TExecResult; + : TeenProcessExecResult; /** * Boot monitor options diff --git a/package.json b/package.json index 9ed248a..34d5ecd 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "lodash": "^4.2.1", "rimraf": "^6.0.1", "semver": "^7.0.0", - "teen_process": "^4.0.3", + "teen_process": "^4.0.4", "uuid": "^13.0.0", "which": "^6.0.0" },