reset-framework-cli 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +19 -19
  3. package/package.json +6 -6
  4. package/src/commands/build.js +71 -71
  5. package/src/commands/dev.js +121 -121
  6. package/src/commands/doctor.js +54 -54
  7. package/src/commands/init.js +866 -866
  8. package/src/commands/package.js +68 -68
  9. package/src/index.js +195 -195
  10. package/src/lib/context.js +66 -66
  11. package/src/lib/framework.js +57 -57
  12. package/src/lib/logger.js +11 -11
  13. package/src/lib/output.js +234 -234
  14. package/src/lib/process.js +303 -303
  15. package/src/lib/project.js +493 -493
  16. package/src/lib/toolchain.js +62 -62
  17. package/src/lib/ui.js +244 -244
  18. package/templates/basic/README.md +15 -15
  19. package/templates/basic/frontend/README.md +73 -73
  20. package/templates/basic/frontend/eslint.config.js +23 -23
  21. package/templates/basic/frontend/index.html +13 -13
  22. package/templates/basic/frontend/package.json +31 -31
  23. package/templates/basic/frontend/public/icons.svg +24 -24
  24. package/templates/basic/frontend/src/App.css +216 -216
  25. package/templates/basic/frontend/src/App.tsx +77 -77
  26. package/templates/basic/frontend/src/assets/vite.svg +1 -1
  27. package/templates/basic/frontend/src/index.css +111 -111
  28. package/templates/basic/frontend/src/lib/reset.ts +1 -1
  29. package/templates/basic/frontend/src/main.tsx +10 -10
  30. package/templates/basic/frontend/tsconfig.app.json +28 -28
  31. package/templates/basic/frontend/tsconfig.json +7 -7
  32. package/templates/basic/frontend/tsconfig.node.json +26 -26
  33. package/templates/basic/frontend/vite.config.ts +16 -16
  34. package/templates/basic/reset.config.json +58 -58
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Jan Kordoš
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to do so, subject to the
10
- following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jan Kordoš
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to do so, subject to the
10
+ following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,21 +1,21 @@
1
- # reset-framework-cli
2
-
3
- `reset-framework-cli` is the developer-facing command-line interface for Reset Framework.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install -g reset-framework-cli
9
- ```
10
-
11
- ## Commands
12
-
13
- - `reset-framework-cli create-app my-app`
14
- - `reset-framework-cli dev`
15
- - `reset-framework-cli build`
16
- - `reset-framework-cli package`
17
- - `reset-framework-cli doctor`
18
-
1
+ # reset-framework-cli
2
+
3
+ `reset-framework-cli` is the developer-facing command-line interface for Reset Framework.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g reset-framework-cli
9
+ ```
10
+
11
+ ## Commands
12
+
13
+ - `reset-framework-cli create-app my-app`
14
+ - `reset-framework-cli dev`
15
+ - `reset-framework-cli build`
16
+ - `reset-framework-cli package`
17
+ - `reset-framework-cli doctor`
18
+
19
19
  ## Package boundary
20
20
 
21
21
  - `reset-framework-cli` orchestrates the framework.
@@ -23,7 +23,7 @@ npm install -g reset-framework-cli
23
23
  - `@reset-framework/native` provides the CMake-based runtime source package.
24
24
  - `@reset-framework/sdk` provides the frontend bridge package.
25
25
  - `@reset-framework/schema` provides the config schema package.
26
-
26
+
27
27
  ## How it works
28
28
 
29
29
  - `reset-framework-cli dev` and `reset-framework-cli build` use the bundled runtime package for the current platform by default.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reset-framework-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "Command-line tooling for Reset Framework.",
6
6
  "license": "MIT",
@@ -11,13 +11,13 @@
11
11
  "node": ">=20.19.0"
12
12
  },
13
13
  "dependencies": {
14
- "@reset-framework/schema": "1.2.0",
15
- "@reset-framework/sdk": "1.2.0"
14
+ "@reset-framework/schema": "1.2.1",
15
+ "@reset-framework/sdk": "1.2.1"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@reset-framework/runtime-darwin-arm64": "1.2.0",
19
- "@reset-framework/runtime-darwin-x64": "1.2.0",
20
- "@reset-framework/runtime-win32-x64": "1.2.0"
18
+ "@reset-framework/runtime-darwin-arm64": "1.2.1",
19
+ "@reset-framework/runtime-darwin-x64": "1.2.1",
20
+ "@reset-framework/runtime-win32-x64": "1.2.1"
21
21
  },
22
22
  "bin": {
23
23
  "reset-framework-cli": "src/index.js"
@@ -1,43 +1,43 @@
1
1
  import { prepareFrameworkRuntime } from "../lib/framework.js"
2
- import { stageMacOSAppBundle, stageWindowsAppBundle } from "../lib/output.js"
3
- import { resolvePackageManagerCommand, runCommand } from "../lib/process.js"
4
- import {
5
- assertAppProject,
6
- assertFrameworkInstall,
7
- loadResetConfig,
8
- resolveAppOutputPaths,
9
- resolveAppPaths,
10
- resolveAppPackageManager,
2
+ import { stageMacOSAppBundle, stageWindowsAppBundle } from "../lib/output.js"
3
+ import { resolvePackageManagerCommand, runCommand } from "../lib/process.js"
4
+ import {
5
+ assertAppProject,
6
+ assertFrameworkInstall,
7
+ loadResetConfig,
8
+ resolveAppOutputPaths,
9
+ resolveAppPaths,
10
+ resolveAppPackageManager,
11
11
  resolveConfigPath,
12
12
  resolveFrontendDir,
13
13
  resolveFrameworkBuildPaths,
14
14
  resolveFrameworkRuntimeStrategy,
15
15
  resolveFrameworkPaths
16
16
  } from "../lib/project.js"
17
- import {
18
- createProgress,
19
- printBanner,
20
- printKeyValueTable,
21
- printSection,
22
- printStatusTable
23
- } from "../lib/ui.js"
24
-
25
- export const description = "Build the frontend, runtime, and final desktop app bundle"
26
-
27
- export async function run(context) {
17
+ import {
18
+ createProgress,
19
+ printBanner,
20
+ printKeyValueTable,
21
+ printSection,
22
+ printStatusTable
23
+ } from "../lib/ui.js"
24
+
25
+ export const description = "Build the frontend, runtime, and final desktop app bundle"
26
+
27
+ export async function run(context) {
28
28
  const dryRun = Boolean(context.flags["dry-run"])
29
29
  const skipFrontend = Boolean(context.flags["skip-frontend"])
30
30
  const skipRuntime = Boolean(context.flags["skip-runtime"])
31
31
  const skipStage = Boolean(context.flags["skip-stage"])
32
32
  const preferSource = Boolean(context.flags["runtime-source"])
33
-
34
- const appPaths = resolveAppPaths(context.projectRoot)
35
- const frameworkPaths = resolveFrameworkPaths()
36
- assertAppProject(appPaths)
37
- assertFrameworkInstall(frameworkPaths)
38
- const config = loadResetConfig(appPaths)
39
- assertAppProject(appPaths, config)
40
- const packageManager = resolveAppPackageManager(appPaths, config)
33
+
34
+ const appPaths = resolveAppPaths(context.projectRoot)
35
+ const frameworkPaths = resolveFrameworkPaths()
36
+ assertAppProject(appPaths)
37
+ assertFrameworkInstall(frameworkPaths)
38
+ const config = loadResetConfig(appPaths)
39
+ assertAppProject(appPaths, config)
40
+ const packageManager = resolveAppPackageManager(appPaths, config)
41
41
  const outputPaths = resolveAppOutputPaths(appPaths, config)
42
42
  const configPath = resolveConfigPath(appPaths)
43
43
  const frontendDir = resolveFrontendDir(appPaths, config)
@@ -48,9 +48,9 @@ export async function run(context) {
48
48
  !skipRuntime ? "Prepare runtime" : null,
49
49
  !skipStage ? "Stage desktop bundle" : null
50
50
  ].filter(Boolean)
51
-
52
- printBanner("reset-framework-cli build", description)
53
- printSection("Project")
51
+
52
+ printBanner("reset-framework-cli build", description)
53
+ printSection("Project")
54
54
  printKeyValueTable([
55
55
  ["Config", configPath],
56
56
  ["Frontend", frontendDir],
@@ -58,8 +58,8 @@ export async function run(context) {
58
58
  ["Output", outputPaths.appBundlePath],
59
59
  ["Runtime", `${runtimeStrategy.kind === "prebuilt" ? "bundled" : "source"} (${runtimeStrategy.label})`]
60
60
  ])
61
- console.log("")
62
-
61
+ console.log("")
62
+
63
63
  printSection("Plan")
64
64
  printStatusTable([
65
65
  [skipFrontend ? "skip" : "ready", "Frontend", skipFrontend ? "Skipping frontend build" : "Build static frontend assets"],
@@ -72,36 +72,36 @@ export async function run(context) {
72
72
  ],
73
73
  [skipStage ? "skip" : "ready", "Bundle", skipStage ? "Skipping app bundle staging" : "Assemble the final desktop app bundle"]
74
74
  ])
75
-
76
- if (dryRun) {
77
- console.log("")
78
- printSection("Dry run")
79
- printStatusTable(
80
- steps.length > 0
81
- ? steps.map((step) => ["plan", step, "No changes will be written"])
82
- : [["warn", "Nothing to do", "All build phases were skipped"]]
83
- )
84
- return
85
- }
86
-
87
- if (steps.length === 0) {
88
- console.log("")
89
- printSection("Result")
90
- printStatusTable([["warn", "Nothing to do", "All build phases were skipped"]])
91
- return
92
- }
93
-
94
- console.log("")
95
- const progress = createProgress(steps.length, "Build")
96
-
97
- if (!skipFrontend) {
98
- await runCommand(resolvePackageManagerCommand(packageManager), ["run", "build"], {
99
- cwd: frontendDir,
100
- dryRun
101
- })
102
- progress.tick("Frontend assets built")
103
- }
104
-
75
+
76
+ if (dryRun) {
77
+ console.log("")
78
+ printSection("Dry run")
79
+ printStatusTable(
80
+ steps.length > 0
81
+ ? steps.map((step) => ["plan", step, "No changes will be written"])
82
+ : [["warn", "Nothing to do", "All build phases were skipped"]]
83
+ )
84
+ return
85
+ }
86
+
87
+ if (steps.length === 0) {
88
+ console.log("")
89
+ printSection("Result")
90
+ printStatusTable([["warn", "Nothing to do", "All build phases were skipped"]])
91
+ return
92
+ }
93
+
94
+ console.log("")
95
+ const progress = createProgress(steps.length, "Build")
96
+
97
+ if (!skipFrontend) {
98
+ await runCommand(resolvePackageManagerCommand(packageManager), ["run", "build"], {
99
+ cwd: frontendDir,
100
+ dryRun
101
+ })
102
+ progress.tick("Frontend assets built")
103
+ }
104
+
105
105
  if (!skipRuntime) {
106
106
  const preparedRuntime = await prepareFrameworkRuntime(frameworkPaths, frameworkBuildPaths, "release", {
107
107
  cwd: appPaths.appRoot,
@@ -121,11 +121,11 @@ export async function run(context) {
121
121
  })
122
122
  progress.tick("Desktop app bundle staged")
123
123
  }
124
-
125
- console.log("")
126
- printSection("Result")
127
- printStatusTable([
128
- ["done", "Build output", outputPaths.outputRoot],
129
- ["done", "Desktop app", outputPaths.appBundlePath]
130
- ])
131
- }
124
+
125
+ console.log("")
126
+ printSection("Result")
127
+ printStatusTable([
128
+ ["done", "Build output", outputPaths.outputRoot],
129
+ ["done", "Desktop app", outputPaths.appBundlePath]
130
+ ])
131
+ }
@@ -1,17 +1,17 @@
1
1
  import { prepareFrameworkRuntime } from "../lib/framework.js"
2
- import {
3
- registerChildCleanup,
4
- resolvePackageManagerCommand,
5
- spawnCommand,
6
- waitForProcessExit,
7
- waitForUrl
8
- } from "../lib/process.js"
9
- import {
10
- assertAppProject,
11
- assertFrameworkInstall,
12
- loadResetConfig,
13
- resolveAppPaths,
14
- resolveAppPackageManager,
2
+ import {
3
+ registerChildCleanup,
4
+ resolvePackageManagerCommand,
5
+ spawnCommand,
6
+ waitForProcessExit,
7
+ waitForUrl
8
+ } from "../lib/process.js"
9
+ import {
10
+ assertAppProject,
11
+ assertFrameworkInstall,
12
+ loadResetConfig,
13
+ resolveAppPaths,
14
+ resolveAppPackageManager,
15
15
  resolveConfigPath,
16
16
  resolveDevServerOptions,
17
17
  resolveFrontendDir,
@@ -20,31 +20,31 @@ import {
20
20
  resolveFrameworkRuntimeStrategy,
21
21
  resolveFrameworkPaths
22
22
  } from "../lib/project.js"
23
- import {
24
- createProgress,
25
- printBanner,
26
- printKeyValueTable,
27
- printSection,
28
- printStatusTable
29
- } from "../lib/ui.js"
30
-
31
- export const description = "Run the frontend dev server and native host"
32
-
33
- export async function run(context) {
23
+ import {
24
+ createProgress,
25
+ printBanner,
26
+ printKeyValueTable,
27
+ printSection,
28
+ printStatusTable
29
+ } from "../lib/ui.js"
30
+
31
+ export const description = "Run the frontend dev server and native host"
32
+
33
+ export async function run(context) {
34
34
  const dryRun = Boolean(context.flags["dry-run"])
35
35
  const skipFrontend = Boolean(context.flags["skip-frontend"])
36
36
  const skipRuntime = Boolean(context.flags["skip-runtime"])
37
37
  const noOpen = Boolean(context.flags["no-open"])
38
38
  const preferSource = Boolean(context.flags["runtime-source"])
39
-
40
- const appPaths = resolveAppPaths(context.projectRoot)
41
- const frameworkPaths = resolveFrameworkPaths()
42
- assertAppProject(appPaths)
43
- assertFrameworkInstall(frameworkPaths)
44
- const config = loadResetConfig(appPaths)
45
- assertAppProject(appPaths, config)
46
- const packageManager = resolveAppPackageManager(appPaths, config)
47
- const devServer = resolveDevServerOptions(config)
39
+
40
+ const appPaths = resolveAppPaths(context.projectRoot)
41
+ const frameworkPaths = resolveFrameworkPaths()
42
+ assertAppProject(appPaths)
43
+ assertFrameworkInstall(frameworkPaths)
44
+ const config = loadResetConfig(appPaths)
45
+ assertAppProject(appPaths, config)
46
+ const packageManager = resolveAppPackageManager(appPaths, config)
47
+ const devServer = resolveDevServerOptions(config)
48
48
  const configPath = resolveConfigPath(appPaths)
49
49
  const frontendDir = resolveFrontendDir(appPaths, config)
50
50
  const frameworkBuildPaths = resolveFrameworkBuildPaths(appPaths)
@@ -54,9 +54,9 @@ export async function run(context) {
54
54
  !skipFrontend ? "Start frontend dev server" : null,
55
55
  !noOpen ? "Launch desktop window" : null
56
56
  ].filter(Boolean)
57
-
58
- printBanner("reset-framework-cli dev", description)
59
- printSection("Project")
57
+
58
+ printBanner("reset-framework-cli dev", description)
59
+ printSection("Project")
60
60
  printKeyValueTable([
61
61
  ["Config", configPath],
62
62
  ["Frontend", frontendDir],
@@ -64,8 +64,8 @@ export async function run(context) {
64
64
  ["Dev URL", config.frontend.devUrl],
65
65
  ["Runtime", `${runtimeStrategy.kind === "prebuilt" ? "bundled" : "source"} (${runtimeStrategy.label})`]
66
66
  ])
67
- console.log("")
68
-
67
+ console.log("")
68
+
69
69
  printSection("Plan")
70
70
  printStatusTable([
71
71
  [
@@ -78,26 +78,26 @@ export async function run(context) {
78
78
  [skipFrontend ? "skip" : "ready", "Frontend", skipFrontend ? "Expecting an already running dev server" : "Start the frontend dev server and wait for readiness"],
79
79
  [noOpen ? "skip" : "ready", "Window", noOpen ? "Do not launch the desktop window" : "Start the native host with the active project config"]
80
80
  ])
81
-
82
- if (dryRun) {
83
- console.log("")
84
- printSection("Dry run")
85
- printStatusTable(
86
- steps.length > 0
87
- ? steps.map((step) => ["plan", step, "No processes will be started"])
88
- : [["warn", "Nothing to do", "All dev phases were skipped"]]
89
- )
90
- return
91
- }
92
-
93
- if (steps.length === 0) {
94
- console.log("")
95
- printSection("Result")
96
- printStatusTable([["warn", "Nothing to do", "All dev phases were skipped"]])
97
- return
98
- }
99
-
100
- console.log("")
81
+
82
+ if (dryRun) {
83
+ console.log("")
84
+ printSection("Dry run")
85
+ printStatusTable(
86
+ steps.length > 0
87
+ ? steps.map((step) => ["plan", step, "No processes will be started"])
88
+ : [["warn", "Nothing to do", "All dev phases were skipped"]]
89
+ )
90
+ return
91
+ }
92
+
93
+ if (steps.length === 0) {
94
+ console.log("")
95
+ printSection("Result")
96
+ printStatusTable([["warn", "Nothing to do", "All dev phases were skipped"]])
97
+ return
98
+ }
99
+
100
+ console.log("")
101
101
  const progress = createProgress(steps.length, "Dev")
102
102
 
103
103
  if (!skipRuntime) {
@@ -108,72 +108,72 @@ export async function run(context) {
108
108
  })
109
109
  progress.tick(preparedRuntime.kind === "prebuilt" ? "Bundled runtime ready" : "Native runtime built")
110
110
  }
111
-
112
- const children = []
113
-
114
- if (!skipFrontend) {
115
- const frontendProcess = spawnCommand(resolvePackageManagerCommand(packageManager), [
116
- "run",
117
- "dev",
118
- "--",
119
- "--host",
120
- devServer.host,
121
- "--port",
122
- devServer.port,
123
- "--strictPort"
124
- ], {
125
- cwd: frontendDir,
126
- dryRun
127
- })
128
-
129
- if (frontendProcess) {
130
- children.push(frontendProcess)
131
- await waitForUrl(config.frontend.devUrl)
132
- progress.tick("Frontend dev server is reachable")
133
- }
134
- }
135
-
111
+
112
+ const children = []
113
+
114
+ if (!skipFrontend) {
115
+ const frontendProcess = spawnCommand(resolvePackageManagerCommand(packageManager), [
116
+ "run",
117
+ "dev",
118
+ "--",
119
+ "--host",
120
+ devServer.host,
121
+ "--port",
122
+ devServer.port,
123
+ "--strictPort"
124
+ ], {
125
+ cwd: frontendDir,
126
+ dryRun
127
+ })
128
+
129
+ if (frontendProcess) {
130
+ children.push(frontendProcess)
131
+ await waitForUrl(config.frontend.devUrl)
132
+ progress.tick("Frontend dev server is reachable")
133
+ }
134
+ }
135
+
136
136
  if (!noOpen) {
137
137
  const appBinary = resolveFrameworkRuntimeBinary(frameworkPaths, frameworkBuildPaths, "dev", {
138
138
  mustExist: !dryRun,
139
139
  strategy: runtimeStrategy
140
140
  })
141
141
  const appProcess = spawnCommand(appBinary, [], {
142
- cwd: appPaths.appRoot,
143
- env: {
144
- RESET_CONFIG_PATH: configPath,
145
- RESET_FRONTEND_DEV_URL: config.frontend.devUrl
146
- },
147
- dryRun
148
- })
149
-
150
- if (appProcess) {
151
- children.push(appProcess)
152
- progress.tick("Desktop window launched")
153
- }
154
- }
155
-
156
- if (children.length === 0) {
157
- return
158
- }
159
-
160
- console.log("")
161
- printSection("Runtime")
162
- printStatusTable([
163
- ["done", "Frontend", config.frontend.devUrl],
164
- ["done", "Config", configPath]
165
- ])
166
- console.log(" Press Ctrl+C to stop")
167
-
168
- const cleanup = registerChildCleanup(children)
169
-
170
- try {
171
- await Promise.race([
172
- ...children.map((child, index) =>
173
- waitForProcessExit(child, index === 0 ? "dev process" : "native host")
174
- )
175
- ])
176
- } finally {
177
- await cleanup()
178
- }
179
- }
142
+ cwd: appPaths.appRoot,
143
+ env: {
144
+ RESET_CONFIG_PATH: configPath,
145
+ RESET_FRONTEND_DEV_URL: config.frontend.devUrl
146
+ },
147
+ dryRun
148
+ })
149
+
150
+ if (appProcess) {
151
+ children.push(appProcess)
152
+ progress.tick("Desktop window launched")
153
+ }
154
+ }
155
+
156
+ if (children.length === 0) {
157
+ return
158
+ }
159
+
160
+ console.log("")
161
+ printSection("Runtime")
162
+ printStatusTable([
163
+ ["done", "Frontend", config.frontend.devUrl],
164
+ ["done", "Config", configPath]
165
+ ])
166
+ console.log(" Press Ctrl+C to stop")
167
+
168
+ const cleanup = registerChildCleanup(children)
169
+
170
+ try {
171
+ await Promise.race([
172
+ ...children.map((child, index) =>
173
+ waitForProcessExit(child, index === 0 ? "dev process" : "native host")
174
+ )
175
+ ])
176
+ } finally {
177
+ await cleanup()
178
+ }
179
+ }