buncargo 1.0.29 → 3.2.0

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.
Files changed (246) hide show
  1. package/dist/bin.d.ts +1 -12
  2. package/dist/bin.js +261 -253
  3. package/dist/cli/bin.d.ts +13 -0
  4. package/dist/cli/bin.js +317 -0
  5. package/dist/cli/commands/help.d.ts +1 -0
  6. package/dist/cli/commands/runtime.d.ts +5 -0
  7. package/dist/cli/commands/version.d.ts +1 -0
  8. package/dist/cli/index.d.ts +1 -0
  9. package/dist/cli/index.js +14 -0
  10. package/dist/cli/run-cli.d.ts +30 -0
  11. package/dist/cli.d.ts +1 -22
  12. package/dist/cli.js +5 -13
  13. package/dist/config/config.d.ts +1 -0
  14. package/dist/config/define-config.d.ts +13 -0
  15. package/dist/config/index.d.ts +3 -0
  16. package/dist/config/index.js +15 -0
  17. package/dist/config/merge-configs.d.ts +3 -0
  18. package/dist/config/validate-config.d.ts +3 -0
  19. package/dist/config.d.ts +1 -72
  20. package/dist/config.js +12 -12
  21. package/dist/core/docker.d.ts +1 -83
  22. package/dist/core/docker.js +35 -32
  23. package/dist/core/index.d.ts +1 -1
  24. package/dist/core/index.js +123 -118
  25. package/dist/core/network.js +2 -2
  26. package/dist/core/ports.js +1 -1
  27. package/dist/core/process.js +1 -1
  28. package/dist/core/quick-tunnel/cloudflared-process.d.ts +10 -0
  29. package/dist/core/quick-tunnel/constants.d.ts +9 -0
  30. package/dist/core/quick-tunnel/index.d.ts +17 -0
  31. package/dist/core/quick-tunnel/install.d.ts +1 -0
  32. package/dist/core/tunnel.d.ts +34 -0
  33. package/dist/core/utils.js +2 -2
  34. package/dist/core/watchdog-runner.js +45 -42
  35. package/dist/core/watchdog.d.ts +1 -0
  36. package/dist/core/watchdog.js +4 -2
  37. package/dist/docker/index.d.ts +1 -0
  38. package/dist/docker/index.js +38 -0
  39. package/dist/docker/runtime.d.ts +87 -0
  40. package/dist/docker/runtime.js +37 -0
  41. package/dist/docker-compose/compose.d.ts +1 -0
  42. package/dist/docker-compose/generated-file.d.ts +7 -0
  43. package/dist/docker-compose/index.d.ts +3 -0
  44. package/dist/docker-compose/index.js +15 -0
  45. package/dist/docker-compose/model.d.ts +6 -0
  46. package/dist/docker-compose/services/clickhouse.d.ts +16 -0
  47. package/dist/docker-compose/services/define-docker-service.d.ts +41 -0
  48. package/dist/docker-compose/services/index.d.ts +23 -0
  49. package/dist/docker-compose/services/index.js +17 -0
  50. package/dist/docker-compose/services/postgres.d.ts +12 -0
  51. package/dist/docker-compose/services/redis.d.ts +12 -0
  52. package/dist/docker-compose/services/shared.d.ts +7 -0
  53. package/dist/docker-compose/yaml.d.ts +2 -0
  54. package/dist/environment/create-dev-environment.d.ts +23 -0
  55. package/dist/environment/index.d.ts +1 -0
  56. package/dist/environment/index.js +15 -0
  57. package/dist/environment/logging.d.ts +17 -0
  58. package/dist/environment/only-apps.d.ts +10 -0
  59. package/dist/environment/seeding.d.ts +9 -0
  60. package/dist/environment.d.ts +1 -23
  61. package/dist/environment.js +12 -14
  62. package/dist/index-045jksh5.js +147 -0
  63. package/dist/index-08wa79cs.js +125 -117
  64. package/dist/index-0kxnae3z.js +335 -0
  65. package/dist/index-1mdrf7nz.js +51 -43
  66. package/dist/index-1yvbwj4k.js +262 -242
  67. package/dist/index-23ev345g.js +475 -0
  68. package/dist/index-2ckr49sf.js +228 -0
  69. package/dist/index-2f47khe5.js +376 -369
  70. package/dist/index-2fr3g85b.js +220 -183
  71. package/dist/index-38xnzpa6.js +450 -0
  72. package/dist/index-3eyrdxw9.js +577 -0
  73. package/dist/index-3h3dhtf2.js +51 -43
  74. package/dist/index-42x95209.js +51 -43
  75. package/dist/index-4gp0az1g.js +145 -0
  76. package/dist/index-4xrxh8yv.js +72 -0
  77. package/dist/index-5aq985p4.js +250 -0
  78. package/dist/index-5gmws6ah.js +181 -0
  79. package/dist/index-5hka0tff.js +78 -76
  80. package/dist/index-5rfqps4b.js +3 -0
  81. package/dist/index-5t9jxqm0.js +428 -0
  82. package/dist/index-6c1w1xk5.js +101 -0
  83. package/dist/index-6cmex7m5.js +72 -0
  84. package/dist/index-6d6x175r.js +572 -0
  85. package/dist/index-6fm7mvwj.js +118 -97
  86. package/dist/index-6srpc523.js +127 -128
  87. package/dist/index-731rzzfp.js +157 -142
  88. package/dist/index-75y4cg2z.js +51 -43
  89. package/dist/index-7ja4ywyj.js +126 -127
  90. package/dist/index-7v19es2e.js +666 -0
  91. package/dist/index-8bw1cmz4.js +531 -0
  92. package/dist/index-8hbbj1mp.js +120 -121
  93. package/dist/index-8xj2p5n5.js +118 -97
  94. package/dist/index-9wyhzw0h.js +574 -0
  95. package/dist/index-ag90ry8t.js +576 -0
  96. package/dist/index-bj79tw5w.js +0 -0
  97. package/dist/index-bnk6nr0g.js +73 -0
  98. package/dist/index-brbbzyks.js +72 -0
  99. package/dist/index-byeqyjrz.js +72 -0
  100. package/dist/index-c0dr6mcv.js +123 -0
  101. package/dist/index-cty0bcry.js +235 -218
  102. package/dist/index-d8tyv5se.js +228 -0
  103. package/dist/index-d9efy0n4.js +176 -150
  104. package/dist/index-enj4zdma.js +574 -0
  105. package/dist/index-etfmqjjf.js +427 -0
  106. package/dist/index-fb29934k.js +172 -0
  107. package/dist/index-g50jw1yf.js +72 -0
  108. package/dist/index-g6eb5wdw.js +118 -117
  109. package/dist/index-ggq3yryx.js +99 -95
  110. package/dist/index-h70tce00.js +177 -0
  111. package/dist/index-hkxtfqtc.js +333 -0
  112. package/dist/index-k370bech.js +72 -0
  113. package/dist/index-kf3dhser.js +146 -143
  114. package/dist/index-ma6tgdb2.js +500 -0
  115. package/dist/index-mam0bcyz.js +123 -0
  116. package/dist/index-mm412dkp.js +274 -0
  117. package/dist/index-n8v18aeb.js +0 -0
  118. package/dist/index-ndnmnsej.js +378 -371
  119. package/dist/index-p8wty0e2.js +389 -379
  120. package/dist/index-qa8akv6y.js +666 -0
  121. package/dist/index-qfphr2fd.js +78 -76
  122. package/dist/index-qqmms8rs.js +51 -43
  123. package/dist/index-qw4093g2.js +51 -43
  124. package/dist/index-qzwpzjbx.js +121 -122
  125. package/dist/index-segbnm0h.js +146 -143
  126. package/dist/index-t0fj6gg1.js +112 -0
  127. package/dist/index-thdkwnv7.js +122 -0
  128. package/dist/index-tjbx2r2t.js +270 -0
  129. package/dist/index-tjqw9vtj.js +62 -54
  130. package/dist/index-vbpb89jy.js +248 -0
  131. package/dist/index-vg55rq0y.js +250 -0
  132. package/dist/index-vhs88xhe.js +99 -95
  133. package/dist/index-vs81yaks.js +244 -0
  134. package/dist/index-w8zxnjka.js +249 -0
  135. package/dist/index-wk2na3t9.js +385 -375
  136. package/dist/index-wz9x8g7z.js +383 -373
  137. package/dist/index-x249gyde.js +388 -378
  138. package/dist/index-x54nbgs7.js +355 -0
  139. package/dist/index-xkvd0nsd.js +187 -0
  140. package/dist/index-yedqxm1z.js +80 -0
  141. package/dist/index-yz4jfz7z.js +338 -0
  142. package/dist/index-zfjzzjkf.js +240 -199
  143. package/dist/index.d.ts +12 -8
  144. package/dist/index.js +56 -34
  145. package/dist/lint.d.ts +1 -46
  146. package/dist/lint.js +3 -7
  147. package/dist/loader/cache.d.ts +4 -0
  148. package/dist/loader/find-config-file.d.ts +2 -0
  149. package/dist/loader/index.d.ts +5 -0
  150. package/dist/loader/index.js +24 -0
  151. package/dist/loader/load-dev-env.d.ts +5 -0
  152. package/dist/loader/loader.d.ts +1 -0
  153. package/dist/loader.d.ts +1 -45
  154. package/dist/loader.js +22 -20
  155. package/dist/prisma/index.d.ts +1 -0
  156. package/dist/prisma/prisma.d.ts +29 -0
  157. package/dist/prisma.d.ts +1 -29
  158. package/dist/prisma.js +6 -10
  159. package/dist/src/bin.js +309 -0
  160. package/dist/src/cli.js +5 -0
  161. package/dist/src/config.js +15 -0
  162. package/dist/src/core/docker.js +38 -0
  163. package/dist/src/core/index.js +130 -0
  164. package/dist/src/core/network.js +9 -0
  165. package/dist/src/core/ports.js +23 -0
  166. package/dist/src/core/process.js +31 -0
  167. package/dist/src/core/utils.js +11 -0
  168. package/dist/src/core/watchdog-runner.js +69 -0
  169. package/dist/src/core/watchdog.js +28 -0
  170. package/dist/src/docker/runtime.js +37 -0
  171. package/dist/src/docker-compose/index.js +16 -0
  172. package/dist/src/docker-compose/services/index.js +17 -0
  173. package/dist/src/environment.js +12 -0
  174. package/dist/src/index.js +122 -0
  175. package/dist/src/lint.js +3 -0
  176. package/dist/src/loader.js +25 -0
  177. package/dist/src/prisma.js +6 -0
  178. package/dist/src/types.js +0 -0
  179. package/dist/typecheck/index.d.ts +1 -0
  180. package/dist/typecheck/index.js +7 -0
  181. package/dist/typecheck/typecheck.d.ts +46 -0
  182. package/dist/types/all-types.d.ts +544 -0
  183. package/dist/types/cli.d.ts +1 -0
  184. package/dist/types/config.d.ts +6 -0
  185. package/dist/types/docker.d.ts +15 -0
  186. package/dist/types/environment.d.ts +8 -0
  187. package/dist/types/hooks.d.ts +9 -0
  188. package/dist/types/index.d.ts +1 -0
  189. package/dist/types/index.js +0 -0
  190. package/dist/types/prisma.d.ts +1 -0
  191. package/dist/types.d.ts +1 -399
  192. package/package.json +55 -48
  193. package/readme.md +365 -109
  194. package/src/cli/bin.ts +77 -0
  195. package/src/cli/commands/help.ts +39 -0
  196. package/src/cli/commands/runtime.ts +72 -0
  197. package/src/cli/commands/version.ts +4 -0
  198. package/src/cli/index.ts +1 -0
  199. package/{cli.ts → src/cli/run-cli.ts} +114 -10
  200. package/src/config/define-config.ts +30 -0
  201. package/src/config/index.ts +3 -0
  202. package/src/config/merge-configs.ts +33 -0
  203. package/src/config/validate-config.ts +136 -0
  204. package/{core → src/core}/index.ts +2 -2
  205. package/{core → src/core}/ports.ts +5 -2
  206. package/{core → src/core}/process.ts +6 -2
  207. package/src/core/quick-tunnel/cloudflared-process.ts +83 -0
  208. package/src/core/quick-tunnel/constants.ts +31 -0
  209. package/src/core/quick-tunnel/index.ts +96 -0
  210. package/src/core/quick-tunnel/install.ts +160 -0
  211. package/src/core/tunnel.ts +165 -0
  212. package/{core → src/core}/utils.ts +1 -0
  213. package/{core → src/core}/watchdog.ts +5 -1
  214. package/src/docker/index.ts +1 -0
  215. package/{core/docker.ts → src/docker/runtime.ts} +11 -4
  216. package/src/docker-compose/generated-file.ts +45 -0
  217. package/src/docker-compose/index.ts +7 -0
  218. package/src/docker-compose/model.ts +197 -0
  219. package/src/docker-compose/services/clickhouse.ts +79 -0
  220. package/src/docker-compose/services/define-docker-service.ts +109 -0
  221. package/src/docker-compose/services/index.ts +67 -0
  222. package/src/docker-compose/services/postgres.ts +60 -0
  223. package/src/docker-compose/services/redis.ts +48 -0
  224. package/src/docker-compose/services/shared.ts +79 -0
  225. package/src/docker-compose/yaml.ts +88 -0
  226. package/{environment.ts → src/environment/create-dev-environment.ts} +214 -141
  227. package/src/environment/index.ts +1 -0
  228. package/src/environment/logging.ts +115 -0
  229. package/src/environment/only-apps.ts +34 -0
  230. package/src/environment/seeding.ts +57 -0
  231. package/{index.ts → src/index.ts} +52 -20
  232. package/src/loader/cache.ts +23 -0
  233. package/src/loader/find-config-file.ts +29 -0
  234. package/src/loader/index.ts +17 -0
  235. package/src/loader/load-dev-env.ts +38 -0
  236. package/src/prisma/index.ts +1 -0
  237. package/{prisma.ts → src/prisma/prisma.ts} +4 -2
  238. package/src/typecheck/index.ts +1 -0
  239. package/{types.ts → src/types/all-types.ts} +186 -8
  240. package/src/types/index.ts +1 -0
  241. package/bin.ts +0 -192
  242. package/config.ts +0 -194
  243. package/loader.ts +0 -126
  244. /package/{core → src/core}/network.ts +0 -0
  245. /package/{core → src/core}/watchdog-runner.ts +0 -0
  246. /package/{lint.ts → src/typecheck/typecheck.ts} +0 -0
@@ -0,0 +1,130 @@
1
+ import "../../index-n8v18aeb.js";
2
+ import {
3
+ getEnvVar,
4
+ getLocalIp,
5
+ isCI,
6
+ isPortAvailable,
7
+ logApiUrl,
8
+ logExpoApiUrl,
9
+ logFrontendPort,
10
+ sleep,
11
+ waitForDevServers,
12
+ waitForServer,
13
+ } from "../../index-4gp0az1g.js";
14
+ import {
15
+ getHeartbeatFile,
16
+ getWatchdogComposeArg,
17
+ getWatchdogPid,
18
+ getWatchdogPidFile,
19
+ isWatchdogRunning,
20
+ readHeartbeat,
21
+ removeHeartbeatFile,
22
+ spawnWatchdog,
23
+ startHeartbeat,
24
+ stopHeartbeat,
25
+ stopWatchdog,
26
+ } from "../../index-mam0bcyz.js";
27
+ import {
28
+ buildApps,
29
+ exec,
30
+ execAsync,
31
+ getProcessOnPort,
32
+ isPortInUse,
33
+ isProcessAlive,
34
+ killProcessesOnAppPorts,
35
+ killProcessOnPort,
36
+ killProcessOnPortAndWait,
37
+ spawnDevServer,
38
+ startDevServers,
39
+ stopAllProcesses,
40
+ stopProcess,
41
+ } from "../../index-mm412dkp.js";
42
+ import {
43
+ areContainersRunning,
44
+ assertDockerRunning,
45
+ createBuiltInHealthCheck,
46
+ DOCKER_NOT_RUNNING_MESSAGE,
47
+ getComposeArg,
48
+ isContainerRunning,
49
+ isDockerRunning,
50
+ MAX_ATTEMPTS,
51
+ POLL_INTERVAL,
52
+ startContainers,
53
+ startService,
54
+ stopContainers,
55
+ waitForAllServices,
56
+ waitForService,
57
+ waitForServiceByType,
58
+ } from "../../index-tjbx2r2t.js";
59
+ import {
60
+ calculatePortOffset,
61
+ computeDevIdentity,
62
+ computePorts,
63
+ computeUrls,
64
+ findMonorepoRoot,
65
+ getProjectName,
66
+ getWorktreeName,
67
+ getWorktreeProjectSuffix,
68
+ isWorktree,
69
+ } from "../../index-xkvd0nsd.js";
70
+ import "../../index-qnx9j3qa.js";
71
+ export {
72
+ waitForServiceByType,
73
+ waitForService,
74
+ waitForServer,
75
+ waitForDevServers,
76
+ waitForAllServices,
77
+ stopWatchdog,
78
+ stopProcess,
79
+ stopHeartbeat,
80
+ stopContainers,
81
+ stopAllProcesses,
82
+ startService,
83
+ startHeartbeat,
84
+ startDevServers,
85
+ startContainers,
86
+ spawnWatchdog,
87
+ spawnDevServer,
88
+ sleep,
89
+ removeHeartbeatFile,
90
+ readHeartbeat,
91
+ logFrontendPort,
92
+ logExpoApiUrl,
93
+ logApiUrl,
94
+ killProcessesOnAppPorts,
95
+ killProcessOnPortAndWait,
96
+ killProcessOnPort,
97
+ isWorktree,
98
+ isWatchdogRunning,
99
+ isProcessAlive,
100
+ isPortInUse,
101
+ isPortAvailable,
102
+ isDockerRunning,
103
+ isContainerRunning,
104
+ isCI,
105
+ getWorktreeProjectSuffix,
106
+ getWorktreeName,
107
+ getWatchdogPidFile,
108
+ getWatchdogPid,
109
+ getWatchdogComposeArg,
110
+ getProjectName,
111
+ getProcessOnPort,
112
+ getLocalIp,
113
+ getHeartbeatFile,
114
+ getEnvVar,
115
+ getComposeArg,
116
+ findMonorepoRoot,
117
+ execAsync,
118
+ exec,
119
+ createBuiltInHealthCheck,
120
+ computeUrls,
121
+ computePorts,
122
+ computeDevIdentity,
123
+ calculatePortOffset,
124
+ buildApps,
125
+ assertDockerRunning,
126
+ areContainersRunning,
127
+ POLL_INTERVAL,
128
+ MAX_ATTEMPTS,
129
+ DOCKER_NOT_RUNNING_MESSAGE,
130
+ };
@@ -0,0 +1,9 @@
1
+ import {
2
+ getLocalIp,
3
+ isPortAvailable,
4
+ waitForDevServers,
5
+ waitForServer,
6
+ } from "../../index-4gp0az1g.js";
7
+ import "../../index-xkvd0nsd.js";
8
+ import "../../index-qnx9j3qa.js";
9
+ export { waitForServer, waitForDevServers, isPortAvailable, getLocalIp };
@@ -0,0 +1,23 @@
1
+ import {
2
+ calculatePortOffset,
3
+ computeDevIdentity,
4
+ computePorts,
5
+ computeUrls,
6
+ findMonorepoRoot,
7
+ getProjectName,
8
+ getWorktreeName,
9
+ getWorktreeProjectSuffix,
10
+ isWorktree,
11
+ } from "../../index-xkvd0nsd.js";
12
+ import "../../index-qnx9j3qa.js";
13
+ export {
14
+ isWorktree,
15
+ getWorktreeProjectSuffix,
16
+ getWorktreeName,
17
+ getProjectName,
18
+ findMonorepoRoot,
19
+ computeUrls,
20
+ computePorts,
21
+ computeDevIdentity,
22
+ calculatePortOffset,
23
+ };
@@ -0,0 +1,31 @@
1
+ import {
2
+ buildApps,
3
+ exec,
4
+ execAsync,
5
+ getProcessOnPort,
6
+ isPortInUse,
7
+ isProcessAlive,
8
+ killProcessesOnAppPorts,
9
+ killProcessOnPort,
10
+ killProcessOnPortAndWait,
11
+ spawnDevServer,
12
+ startDevServers,
13
+ stopAllProcesses,
14
+ stopProcess,
15
+ } from "../../index-mm412dkp.js";
16
+ import "../../index-qnx9j3qa.js";
17
+ export {
18
+ stopProcess,
19
+ stopAllProcesses,
20
+ startDevServers,
21
+ spawnDevServer,
22
+ killProcessesOnAppPorts,
23
+ killProcessOnPortAndWait,
24
+ killProcessOnPort,
25
+ isProcessAlive,
26
+ isPortInUse,
27
+ getProcessOnPort,
28
+ execAsync,
29
+ exec,
30
+ buildApps,
31
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ getEnvVar,
3
+ isCI,
4
+ logApiUrl,
5
+ logExpoApiUrl,
6
+ logFrontendPort,
7
+ sleep,
8
+ } from "../../index-4gp0az1g.js";
9
+ import "../../index-xkvd0nsd.js";
10
+ import "../../index-qnx9j3qa.js";
11
+ export { sleep, logFrontendPort, logExpoApiUrl, logApiUrl, isCI, getEnvVar };
@@ -0,0 +1,69 @@
1
+ // src/core/watchdog-runner.ts
2
+ import { execSync } from "node:child_process";
3
+ import { existsSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
4
+
5
+ var PROJECT_NAME = process.env.WATCHDOG_PROJECT_NAME ?? "";
6
+ var HEARTBEAT_FILE = process.env.WATCHDOG_HEARTBEAT_FILE ?? "";
7
+ var PID_FILE = process.env.WATCHDOG_PID_FILE ?? "";
8
+ var IDLE_TIMEOUT = parseInt(process.env.WATCHDOG_TIMEOUT_MS ?? "600000", 10);
9
+ var COMPOSE_ARG = process.env.WATCHDOG_COMPOSE_ARG ?? "";
10
+ var CHECK_INTERVAL = 60000;
11
+ if (!PROJECT_NAME || !HEARTBEAT_FILE || !PID_FILE) {
12
+ console.error("[watchdog] Missing required environment variables");
13
+ process.exit(1);
14
+ }
15
+ var heartbeatFile = HEARTBEAT_FILE;
16
+ var pidFile = PID_FILE;
17
+ writeFileSync(pidFile, process.pid.toString());
18
+ function cleanup() {
19
+ try {
20
+ unlinkSync(pidFile);
21
+ } catch {}
22
+ try {
23
+ unlinkSync(heartbeatFile);
24
+ } catch {}
25
+ }
26
+ process.on("SIGTERM", () => {
27
+ cleanup();
28
+ process.exit(0);
29
+ });
30
+ process.on("SIGINT", () => {
31
+ cleanup();
32
+ process.exit(0);
33
+ });
34
+ console.log(`[watchdog] Started for ${PROJECT_NAME} (PID: ${process.pid})`);
35
+ console.log(`[watchdog] Idle timeout: ${IDLE_TIMEOUT / 60000} minutes`);
36
+ async function watchdog() {
37
+ while (true) {
38
+ await new Promise((r) => setTimeout(r, CHECK_INTERVAL));
39
+ if (!existsSync(heartbeatFile)) {
40
+ continue;
41
+ }
42
+ let lastBeat;
43
+ try {
44
+ const content = readFileSync(heartbeatFile, "utf-8");
45
+ lastBeat = parseInt(content, 10);
46
+ } catch {
47
+ continue;
48
+ }
49
+ if (Number.isNaN(lastBeat)) {
50
+ continue;
51
+ }
52
+ const elapsed = Date.now() - lastBeat;
53
+ if (elapsed > IDLE_TIMEOUT) {
54
+ console.log(
55
+ `[watchdog] No heartbeat for ${Math.ceil(elapsed / 60000)} minutes, shutting down...`,
56
+ );
57
+ try {
58
+ execSync(`docker compose ${COMPOSE_ARG} down`.trim(), {
59
+ env: { ...process.env, COMPOSE_PROJECT_NAME: PROJECT_NAME },
60
+ stdio: "ignore",
61
+ });
62
+ } catch {}
63
+ console.log("[watchdog] Containers stopped");
64
+ cleanup();
65
+ process.exit(0);
66
+ }
67
+ }
68
+ }
69
+ watchdog();
@@ -0,0 +1,28 @@
1
+ import {
2
+ getHeartbeatFile,
3
+ getWatchdogComposeArg,
4
+ getWatchdogPid,
5
+ getWatchdogPidFile,
6
+ isWatchdogRunning,
7
+ readHeartbeat,
8
+ removeHeartbeatFile,
9
+ spawnWatchdog,
10
+ startHeartbeat,
11
+ stopHeartbeat,
12
+ stopWatchdog,
13
+ } from "../../index-mam0bcyz.js";
14
+ import "../../index-mm412dkp.js";
15
+ import "../../index-qnx9j3qa.js";
16
+ export {
17
+ stopWatchdog,
18
+ stopHeartbeat,
19
+ startHeartbeat,
20
+ spawnWatchdog,
21
+ removeHeartbeatFile,
22
+ readHeartbeat,
23
+ isWatchdogRunning,
24
+ getWatchdogPidFile,
25
+ getWatchdogPid,
26
+ getWatchdogComposeArg,
27
+ getHeartbeatFile,
28
+ };
@@ -0,0 +1,37 @@
1
+ import {
2
+ areContainersRunning,
3
+ assertDockerRunning,
4
+ createBuiltInHealthCheck,
5
+ DOCKER_NOT_RUNNING_MESSAGE,
6
+ getComposeArg,
7
+ isContainerRunning,
8
+ isDockerRunning,
9
+ MAX_ATTEMPTS,
10
+ POLL_INTERVAL,
11
+ startContainers,
12
+ startService,
13
+ stopContainers,
14
+ waitForAllServices,
15
+ waitForService,
16
+ waitForServiceByType,
17
+ } from "../../index-tjbx2r2t.js";
18
+ import "../../index-4gp0az1g.js";
19
+ import "../../index-xkvd0nsd.js";
20
+ import "../../index-qnx9j3qa.js";
21
+ export {
22
+ waitForServiceByType,
23
+ waitForService,
24
+ waitForAllServices,
25
+ stopContainers,
26
+ startService,
27
+ startContainers,
28
+ isDockerRunning,
29
+ isContainerRunning,
30
+ getComposeArg,
31
+ createBuiltInHealthCheck,
32
+ assertDockerRunning,
33
+ areContainersRunning,
34
+ POLL_INTERVAL,
35
+ MAX_ATTEMPTS,
36
+ DOCKER_NOT_RUNNING_MESSAGE,
37
+ };
@@ -0,0 +1,16 @@
1
+ import {
2
+ buildComposeModel,
3
+ composeToYaml,
4
+ DEFAULT_GENERATED_COMPOSE_FILE,
5
+ getGeneratedComposePath,
6
+ writeGeneratedComposeFile,
7
+ } from "../../index-vbpb89jy.js";
8
+ import "../../index-w8zxnjka.js";
9
+ import "../../index-qnx9j3qa.js";
10
+ export {
11
+ writeGeneratedComposeFile,
12
+ getGeneratedComposePath,
13
+ composeToYaml,
14
+ buildComposeModel,
15
+ DEFAULT_GENERATED_COMPOSE_FILE,
16
+ };
@@ -0,0 +1,17 @@
1
+ import {
2
+ buildPresetDockerService,
3
+ clickhouseDockerService,
4
+ inferDockerPreset,
5
+ postgresDockerService,
6
+ redisDockerService,
7
+ service,
8
+ } from "../../../index-w8zxnjka.js";
9
+ import "../../../index-qnx9j3qa.js";
10
+ export {
11
+ service,
12
+ redisDockerService,
13
+ postgresDockerService,
14
+ inferDockerPreset,
15
+ clickhouseDockerService,
16
+ buildPresetDockerService,
17
+ };
@@ -0,0 +1,12 @@
1
+ import { createDevEnvironment } from "../index-38xnzpa6.js";
2
+ import "../index-vbpb89jy.js";
3
+ import "../index-w8zxnjka.js";
4
+ import "../index-mam0bcyz.js";
5
+ import "../index-mm412dkp.js";
6
+ import "../index-045jksh5.js";
7
+ import "../index-6c1w1xk5.js";
8
+ import "../index-tjbx2r2t.js";
9
+ import "../index-4gp0az1g.js";
10
+ import "../index-xkvd0nsd.js";
11
+ import "../index-qnx9j3qa.js";
12
+ export { createDevEnvironment };
@@ -0,0 +1,122 @@
1
+ import { getFlagValue, hasFlag, runCli } from "../index-5gmws6ah.js";
2
+ import { createDevEnvironment } from "../index-38xnzpa6.js";
3
+ import {
4
+ assertValidConfig,
5
+ defineDevConfig,
6
+ mergeConfigs,
7
+ validateConfig,
8
+ } from "../index-045jksh5.js";
9
+ import { runWorkspaceTypecheck } from "../index-h70tce00.js";
10
+ import {
11
+ getHeartbeatFile,
12
+ getWatchdogPidFile,
13
+ isWatchdogRunning,
14
+ spawnWatchdog,
15
+ startHeartbeat,
16
+ stopHeartbeat,
17
+ stopWatchdog,
18
+ } from "../index-mam0bcyz.js";
19
+ import {
20
+ getProcessOnPort,
21
+ isPortInUse,
22
+ isProcessAlive,
23
+ killProcessesOnAppPorts,
24
+ killProcessOnPort,
25
+ killProcessOnPortAndWait,
26
+ } from "../index-mm412dkp.js";
27
+ import {
28
+ buildComposeModel,
29
+ composeToYaml,
30
+ DEFAULT_GENERATED_COMPOSE_FILE,
31
+ getGeneratedComposePath,
32
+ writeGeneratedComposeFile,
33
+ } from "../index-vbpb89jy.js";
34
+ import { service } from "../index-w8zxnjka.js";
35
+ import { clearDevEnvCache, getDevEnv, loadDevEnv } from "../index-yedqxm1z.js";
36
+ import "../index-6c1w1xk5.js";
37
+ import {
38
+ getEnvVar,
39
+ getLocalIp,
40
+ isCI,
41
+ isPortAvailable,
42
+ logApiUrl,
43
+ logExpoApiUrl,
44
+ logFrontendPort,
45
+ sleep,
46
+ waitForServer,
47
+ } from "../index-4gp0az1g.js";
48
+ import {
49
+ areContainersRunning,
50
+ assertDockerRunning,
51
+ DOCKER_NOT_RUNNING_MESSAGE,
52
+ isContainerRunning,
53
+ isDockerRunning,
54
+ MAX_ATTEMPTS,
55
+ POLL_INTERVAL,
56
+ } from "../index-tjbx2r2t.js";
57
+ import {
58
+ calculatePortOffset,
59
+ computeDevIdentity,
60
+ findMonorepoRoot,
61
+ getProjectName,
62
+ getWorktreeName,
63
+ getWorktreeProjectSuffix,
64
+ isWorktree,
65
+ } from "../index-xkvd0nsd.js";
66
+ import "../index-qnx9j3qa.js";
67
+ export {
68
+ writeGeneratedComposeFile,
69
+ waitForServer,
70
+ validateConfig,
71
+ stopWatchdog,
72
+ stopHeartbeat,
73
+ startHeartbeat,
74
+ spawnWatchdog,
75
+ sleep,
76
+ service,
77
+ runWorkspaceTypecheck,
78
+ runCli,
79
+ mergeConfigs,
80
+ logFrontendPort,
81
+ logExpoApiUrl,
82
+ logApiUrl,
83
+ loadDevEnv,
84
+ killProcessesOnAppPorts,
85
+ killProcessOnPortAndWait,
86
+ killProcessOnPort,
87
+ isWorktree,
88
+ isWatchdogRunning,
89
+ isProcessAlive,
90
+ isPortInUse,
91
+ isPortAvailable,
92
+ isDockerRunning,
93
+ isContainerRunning,
94
+ isCI,
95
+ hasFlag,
96
+ getWorktreeProjectSuffix,
97
+ getWorktreeName,
98
+ getWatchdogPidFile,
99
+ getProjectName,
100
+ getProcessOnPort,
101
+ getLocalIp,
102
+ getHeartbeatFile,
103
+ getGeneratedComposePath,
104
+ getFlagValue,
105
+ getEnvVar,
106
+ getDevEnv,
107
+ findMonorepoRoot,
108
+ defineDevConfig,
109
+ createDevEnvironment,
110
+ computeDevIdentity,
111
+ composeToYaml,
112
+ clearDevEnvCache,
113
+ calculatePortOffset,
114
+ buildComposeModel,
115
+ assertValidConfig,
116
+ assertDockerRunning,
117
+ areContainersRunning,
118
+ POLL_INTERVAL,
119
+ MAX_ATTEMPTS,
120
+ DOCKER_NOT_RUNNING_MESSAGE,
121
+ DEFAULT_GENERATED_COMPOSE_FILE,
122
+ };
@@ -0,0 +1,3 @@
1
+ import { runWorkspaceTypecheck } from "../index-h70tce00.js";
2
+ import "../index-qnx9j3qa.js";
3
+ export { runWorkspaceTypecheck };
@@ -0,0 +1,25 @@
1
+ import {
2
+ CONFIG_FILES,
3
+ clearDevEnvCache,
4
+ findConfigFile,
5
+ getDevEnv,
6
+ loadDevEnv,
7
+ } from "../index-yedqxm1z.js";
8
+ import "../index-38xnzpa6.js";
9
+ import "../index-vbpb89jy.js";
10
+ import "../index-w8zxnjka.js";
11
+ import "../index-mam0bcyz.js";
12
+ import "../index-mm412dkp.js";
13
+ import "../index-045jksh5.js";
14
+ import "../index-6c1w1xk5.js";
15
+ import "../index-tjbx2r2t.js";
16
+ import "../index-4gp0az1g.js";
17
+ import "../index-xkvd0nsd.js";
18
+ import "../index-qnx9j3qa.js";
19
+ export {
20
+ loadDevEnv,
21
+ getDevEnv,
22
+ findConfigFile,
23
+ clearDevEnvCache,
24
+ CONFIG_FILES,
25
+ };
@@ -0,0 +1,6 @@
1
+ import { createPrismaRunner } from "../index-6c1w1xk5.js";
2
+ import "../index-tjbx2r2t.js";
3
+ import "../index-4gp0az1g.js";
4
+ import "../index-xkvd0nsd.js";
5
+ import "../index-qnx9j3qa.js";
6
+ export { createPrismaRunner };
File without changes
@@ -0,0 +1 @@
1
+ export * from "./typecheck";
@@ -0,0 +1,7 @@
1
+ import {
2
+ runWorkspaceTypecheck
3
+ } from "../index-h70tce00.js";
4
+ import"../index-qnx9j3qa.js";
5
+ export {
6
+ runWorkspaceTypecheck
7
+ };
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Options for running workspace typechecks.
3
+ */
4
+ export interface WorkspaceTypecheckOptions {
5
+ /** Root directory to search from (defaults to cwd) */
6
+ root?: string;
7
+ /** Glob patterns for workspaces to check (defaults to apps/*, packages/*, modules) */
8
+ patterns?: string[];
9
+ /** Maximum concurrent typecheck processes (defaults to 1) */
10
+ concurrency?: number;
11
+ /** Print output to console (defaults to true) */
12
+ verbose?: boolean;
13
+ }
14
+ /**
15
+ * Result of a single workspace typecheck.
16
+ */
17
+ export interface WorkspaceTypecheckResult {
18
+ workspace: string;
19
+ duration: number;
20
+ success: boolean;
21
+ fileCount: number;
22
+ errorOutput?: string;
23
+ }
24
+ /**
25
+ * Overall result of running typechecks across all workspaces.
26
+ */
27
+ export interface TypecheckResult {
28
+ success: boolean;
29
+ totalDuration: number;
30
+ totalFiles: number;
31
+ workspaceCount: number;
32
+ results: WorkspaceTypecheckResult[];
33
+ }
34
+ /**
35
+ * Run TypeScript typechecks across all workspaces that have a `typecheck` script.
36
+ *
37
+ * @example
38
+ * ```typescript
39
+ * const result = await runWorkspaceTypecheck({ verbose: true })
40
+ * if (!result.success) {
41
+ * console.error('Typecheck failed')
42
+ * process.exit(1)
43
+ * }
44
+ * ```
45
+ */
46
+ export declare function runWorkspaceTypecheck(options?: WorkspaceTypecheckOptions): Promise<TypecheckResult>;