@typed-assistant/builder 0.0.17 → 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 +3 -3
- package/src/appProcess.tsx +7 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed-assistant/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./appProcess": "./src/appProcess.tsx",
|
|
6
6
|
"./bunInstall": "./src/bunInstall.tsx",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"typescript": "^5.3.3",
|
|
24
24
|
"@typed-assistant/eslint-config": "0.0.4",
|
|
25
25
|
"@typed-assistant/logger": "0.0.5",
|
|
26
|
-
"@typed-assistant/
|
|
27
|
-
"@typed-assistant/
|
|
26
|
+
"@typed-assistant/typescript-config": "0.0.4",
|
|
27
|
+
"@typed-assistant/utils": "0.0.7"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"home-assistant-js-websocket": "^8.2.0"
|
package/src/appProcess.tsx
CHANGED
|
@@ -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,9 +82,12 @@ export async function setupWatcher(
|
|
|
82
82
|
},
|
|
83
83
|
)
|
|
84
84
|
|
|
85
|
-
console.log(
|
|
85
|
+
console.log(
|
|
86
|
+
"😅😅😅 ~ addonInfo?.ingress_entry:",
|
|
87
|
+
addonInfo?.data.ingress_entry,
|
|
88
|
+
)
|
|
86
89
|
startWebappServer({
|
|
87
|
-
basePath: addonInfo?.ingress_entry ?? "",
|
|
90
|
+
basePath: addonInfo?.data.ingress_entry ?? "",
|
|
88
91
|
getSubprocesses: () => subprocesses,
|
|
89
92
|
})
|
|
90
93
|
|
|
@@ -127,6 +130,6 @@ const getAddonInfo = async () => {
|
|
|
127
130
|
log("🔍 Getting addon info...")
|
|
128
131
|
|
|
129
132
|
return withErrorHandling(getSupervisorAPI)<{
|
|
130
|
-
ingress_entry: string
|
|
133
|
+
data: { ingress_entry: string }
|
|
131
134
|
}>("/addons/self/info")
|
|
132
135
|
}
|