@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @typed-assistant/builder
2
2
 
3
+ ## 0.0.79
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix for log
8
+
3
9
  ## 0.0.78
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed-assistant/builder",
3
- "version": "0.0.78",
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": {
@@ -216,7 +216,7 @@ function setupWatcher({
216
216
  app: Subprocess<"ignore", "pipe", "pipe">
217
217
  }
218
218
  }) {
219
- logger.debug({ emoji: "👀" }, "Watching directory: ${directoryToWatch}")
219
+ logger.debug({ emoji: "👀" }, `Watching directory: ${directoryToWatch}`)
220
220
  const watcher = watch(
221
221
  directoryToWatch,
222
222
  { recursive: true },
@@ -297,7 +297,15 @@ export const startWebappServer = async ({
297
297
  })
298
298
 
299
299
  const watchLogFileSize = async () => {
300
- if (Bun.file("./log.txt").size > 3 * ONE_MEGABYTE) {
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",