add file watcher

This commit is contained in:
Dax Raad
2025-07-01 13:44:52 -04:00
parent 11d042be25
commit 26dcb85de1
6 changed files with 73 additions and 2 deletions

View File

@@ -36,12 +36,15 @@ export namespace App {
services: Map<any, { state: any; shutdown?: (input: any) => Promise<void> }>
}>("app")
export const use = ctx.use
const APP_JSON = "app.json"
export type Input = {
cwd: string
}
export const provideExisting = ctx.provide
export async function provide<T>(
input: Input,
cb: (app: App.Info) => Promise<T>,