@typed-assistant/builder 0.0.16 → 0.0.18

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.16",
3
+ "version": "0.0.18",
4
4
  "exports": {
5
5
  "./appProcess": "./src/appProcess.tsx",
6
6
  "./bunInstall": "./src/bunInstall.tsx",
@@ -60,10 +60,10 @@ export async function setupWatcher(
60
60
  ...args: Parameters<typeof buildAndStartAppProcess>
61
61
  ) {
62
62
  const { data: addonInfo, error: addonInfoError } = await getAddonInfo()
63
- console.log("😅😅😅 ~ addonInfo:", addonInfo)
64
63
  if (addonInfoError) {
65
64
  log(`🚨 Failed to get addon info: ${addonInfoError}`)
66
65
  }
66
+ console.log("😅😅😅 ~ addonInfo:", Object.keys(addonInfo))
67
67
  await setupGitSync()
68
68
 
69
69
  let subprocesses = await buildAndStartAppProcess(...args)
@@ -82,8 +82,12 @@ export async function setupWatcher(
82
82
  },
83
83
  )
84
84
 
85
+ console.log(
86
+ "😅😅😅 ~ addonInfo?.ingress_entry:",
87
+ addonInfo?.data.ingress_entry,
88
+ )
85
89
  startWebappServer({
86
- basePath: addonInfo?.ingress_entry ?? "",
90
+ basePath: addonInfo?.data.ingress_entry ?? "",
87
91
  getSubprocesses: () => subprocesses,
88
92
  })
89
93
 
@@ -126,6 +130,6 @@ const getAddonInfo = async () => {
126
130
  log("🔍 Getting addon info...")
127
131
 
128
132
  return withErrorHandling(getSupervisorAPI)<{
129
- ingress_entry: string
133
+ data: { ingress_entry: string }
130
134
  }>("/addons/self/info")
131
135
  }
@@ -49,6 +49,7 @@ export const startWebappServer = async ({
49
49
  app: Subprocess<"ignore", "pipe", "pipe">
50
50
  }
51
51
  }) => {
52
+ console.log("😅😅😅 ~ basePath:", basePath)
52
53
  const buildResult = await Bun.build({
53
54
  entrypoints: [tsEntryPoint],
54
55
  outdir: "./build",