@typed-assistant/builder 0.0.26 → 0.0.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed-assistant/builder",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "exports": {
5
5
  "./appProcess": "./src/appProcess.tsx",
6
6
  "./bunInstall": "./src/bunInstall.tsx",
@@ -33,13 +33,6 @@ async function startApp(appSourceFile: string) {
33
33
  return Bun.spawn(["bun", path], {
34
34
  stderr: "pipe",
35
35
  env: { ...process.env, FORCE_COLOR: "1" },
36
- onExit(proc, exitCode, signalCode, error) {
37
- log("😅😅😅 ~ error:", error)
38
- log("😅😅😅 ~ signalCode:", signalCode)
39
- log("😅😅😅 ~ exitCode:", exitCode)
40
- log("😅😅😅 ~ proc:", proc)
41
- // exit handler
42
- },
43
36
  })
44
37
  }
45
38
 
@@ -75,6 +68,7 @@ const checkProcesses = async (
75
68
  log(ps)
76
69
  onProcessError?.(message)
77
70
  // restartAddon()
71
+ return
78
72
  }
79
73
  } else {
80
74
  multipleProcessesErrorCount = 0
@@ -88,6 +82,7 @@ const checkProcesses = async (
88
82
  log(ps)
89
83
  onProcessError?.(message)
90
84
  // restartAddon()
85
+ return
91
86
  }
92
87
  } else {
93
88
  noProcessesErrorCount = 0
@@ -188,12 +183,12 @@ function setupWatcher({
188
183
  }: {
189
184
  directoryToWatch: string
190
185
  onSubprocessChange: (newSubprosses: {
191
- app: Subprocess<"ignore", "pipe", "inherit">
186
+ app: Subprocess<"ignore", "pipe", "pipe">
192
187
  }) => void
193
188
  entryFile: string
194
189
  mdiPaths: string[] | undefined
195
190
  getSubprocesses: () => {
196
- app: Subprocess<"ignore", "pipe", "inherit">
191
+ app: Subprocess<"ignore", "pipe", "pipe">
197
192
  }
198
193
  }) {
199
194
  log("👀 Watching directory:", directoryToWatch)
@@ -49,7 +49,7 @@ export const startWebappServer = async ({
49
49
  }: {
50
50
  basePath: string
51
51
  getSubprocesses: () => {
52
- app: Subprocess<"ignore", "pipe", "inherit">
52
+ app: Subprocess<"ignore", "pipe", "pipe">
53
53
  }
54
54
  }) => {
55
55
  const buildResult = await Bun.build({