MCPcopy
hub / github.com/codeaashu/claude-code / main

Function main

scripts/build-web.ts:40–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40async function main() {
41 if (watch) {
42 const ctx = await esbuild.context(buildOptions)
43 await ctx.watch()
44 console.log('Watching src/server/web/terminal.ts...')
45 } else {
46 const start = Date.now()
47 const result = await esbuild.build(buildOptions)
48 if (result.errors.length > 0) {
49 process.exit(1)
50 }
51 console.log(`Web build complete in ${Date.now() - start}ms → ${OUT_DIR}`)
52 }
53}
54
55main().catch(err => {
56 console.error(err)

Callers 1

build-web.tsFile · 0.70

Calls 1

watchMethod · 0.80

Tested by

no test coverage detected