@typed-assistant/builder 0.0.78 → 0.0.80
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/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/src/appProcess.tsx +1 -1
- package/src/setupWebserver.tsx +9 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typed-assistant/builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./appProcess": "./src/appProcess.tsx",
|
|
6
6
|
"./bunInstall": "./src/bunInstall.tsx",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"ts-toolbelt": "^9.6.0",
|
|
30
30
|
"typescript": "^5.4.0",
|
|
31
31
|
"@typed-assistant/eslint-config": "0.0.10",
|
|
32
|
-
"@typed-assistant/typescript-config": "0.0.10",
|
|
33
32
|
"@typed-assistant/logger": "0.0.22",
|
|
33
|
+
"@typed-assistant/typescript-config": "0.0.10",
|
|
34
34
|
"@typed-assistant/utils": "0.0.19"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
package/src/appProcess.tsx
CHANGED
|
@@ -216,7 +216,7 @@ function setupWatcher({
|
|
|
216
216
|
app: Subprocess<"ignore", "pipe", "pipe">
|
|
217
217
|
}
|
|
218
218
|
}) {
|
|
219
|
-
logger.debug({ emoji: "👀" },
|
|
219
|
+
logger.debug({ emoji: "👀" }, `Watching directory: ${directoryToWatch}`)
|
|
220
220
|
const watcher = watch(
|
|
221
221
|
directoryToWatch,
|
|
222
222
|
{ recursive: true },
|
package/src/setupWebserver.tsx
CHANGED
|
@@ -297,7 +297,15 @@ export const startWebappServer = async ({
|
|
|
297
297
|
})
|
|
298
298
|
|
|
299
299
|
const watchLogFileSize = async () => {
|
|
300
|
-
|
|
300
|
+
const logFileSize = Bun.file("./log.txt").size
|
|
301
|
+
const limit = 3 * ONE_MEGABYTE
|
|
302
|
+
|
|
303
|
+
logger.debug(
|
|
304
|
+
{ emoji: "🗒️" },
|
|
305
|
+
`log.txt size: ${logFileSize}. Limit is ${limit}.`,
|
|
306
|
+
)
|
|
307
|
+
|
|
308
|
+
if (logFileSize > limit) {
|
|
301
309
|
logger.debug(
|
|
302
310
|
{ emoji: "🗑️" },
|
|
303
311
|
"log.txt is too big, deleting old log.txt and renaming new log.txt to old log.txt",
|