The best way to control Claude Code, Codex and more from any computer or phone

main
ts 177 lines 6.64 KB
Raw
1 import { defineConfig } from "tsdown";
2
3 export default defineConfig([
4 {
5 cwd: ".",
6 entry: {
7 "core/index": "src/core/index.ts",
8 "astro/neon": "src/astro/neon.ts",
9 "foldkit/neon": "src/foldkit/neon.ts",
10 "nextjs/neon": "src/nextjs/neon.ts",
11 "nuxt/neon": "src/nuxt/neon.ts",
12 "octane/neon": "src/octane/neon.ts",
13 "react-router/neon": "src/react-router/neon.ts",
14 "solidstart/neon": "src/solidstart/neon.ts",
15 "tanstack-start/neon": "src/tanstack-start/neon.ts",
16 "sveltekit/neon": "src/sveltekit/neon.ts",
17 "vite/neon": "src/vite/neon.ts",
18 "waku/neon": "src/waku/neon.ts",
19 "vocs/neon": "src/vocs/neon.ts",
20 // Standalone child-process entries (spawned by BuildChild.ts /
21 // DevChild.ts, never imported) — must keep their own stable files at
22 // dist/core/.
23 "core/BuildChildRunner": "src/core/BuildChildRunner.ts",
24 "core/DevChildRunner": "src/core/DevChildRunner.ts",
25 "astro/index": "src/astro/index.ts",
26 "astro/aws": "src/astro/aws.ts",
27 "astro/node": "src/astro/node.ts",
28 "astro/cloudflare": "src/astro/cloudflare.ts",
29 "astro/entrypoints/aws-server": "src/astro/entrypoints/aws-server.ts",
30 "astro/entrypoints/node-server": "src/astro/entrypoints/node-server.ts",
31 "astro/cache": "src/astro/cache.ts",
32 "astro/config": "src/astro/config.ts",
33 "astro/source": "src/astro/source.ts",
34 "astro/runtime/entrypoints/server": "src/astro/runtime/entrypoints/server.ts",
35 "astro/runtime/entrypoints/image-passthrough-endpoint":
36 "src/astro/runtime/entrypoints/image-passthrough-endpoint.ts",
37 "foldkit/index": "src/foldkit/index.ts",
38 "foldkit/aws": "src/foldkit/aws.ts",
39 "foldkit/node": "src/foldkit/node.ts",
40 "nextjs/index": "src/nextjs/index.ts",
41 "nextjs/aws": "src/nextjs/aws.ts",
42 "nextjs/node": "src/nextjs/node.ts",
43 "nextjs/cache-handler": "src/nextjs/cache-handler.ts",
44 "nextjs/source": "src/nextjs/source.ts",
45 "aws-lambda/index": "src/aws-lambda/index.ts",
46 "nuxt/index": "src/nuxt/index.ts",
47 "nuxt/aws": "src/nuxt/aws.ts",
48 "nuxt/node": "src/nuxt/node.ts",
49 "nuxt/cloudflare": "src/nuxt/cloudflare.ts",
50 "nuxt/source": "src/nuxt/source.ts",
51 "octane/index": "src/octane/index.ts",
52 "octane/aws": "src/octane/aws.ts",
53 "octane/aws-adapter": "src/octane/aws-adapter.ts",
54 "octane/node": "src/octane/node.ts",
55 "octane/node-adapter": "src/octane/node-adapter.ts",
56 "octane/cloudflare": "src/octane/cloudflare.ts",
57 "octane/source": "src/octane/source.ts",
58 "react-router/index": "src/react-router/index.ts",
59 "react-router/aws": "src/react-router/aws.ts",
60 "react-router/node": "src/react-router/node.ts",
61 "solidstart/index": "src/solidstart/index.ts",
62 "solidstart/aws": "src/solidstart/aws.ts",
63 "solidstart/node": "src/solidstart/node.ts",
64 "tanstack-start/index": "src/tanstack-start/index.ts",
65 "tanstack-start/aws": "src/tanstack-start/aws.ts",
66 "tanstack-start/node": "src/tanstack-start/node.ts",
67 "sveltekit/index": "src/sveltekit/index.ts",
68 "vinext/index": "src/vinext/index.ts",
69 "vinext/aws": "src/vinext/aws.ts",
70 "vinext/node": "src/vinext/node.ts",
71 "vinext/cloudflare": "src/vinext/cloudflare.ts",
72 "vinext/source": "src/vinext/source.ts",
73 "vinext/cache/index": "src/vinext/cache/index.ts",
74 "vinext/cache/kv": "src/vinext/cache/kv.ts",
75 "vinext/cache/kv-runtime": "src/vinext/cache/kv-runtime.ts",
76 "vinext/cache/redis": "src/vinext/cache/redis.ts",
77 "vinext/cache/redis-runtime": "src/vinext/cache/redis-runtime.ts",
78 "vinext/cache/s3": "src/vinext/cache/s3.ts",
79 "vinext/cache/s3-runtime": "src/vinext/cache/s3-runtime.ts",
80 "vite/index": "src/vite/index.ts",
81 "vite/aws": "src/vite/aws.ts",
82 "vite/node": "src/vite/node.ts",
83 "sveltekit/aws": "src/sveltekit/aws.ts",
84 "sveltekit/node": "src/sveltekit/node.ts",
85 "sveltekit/cloudflare": "src/sveltekit/cloudflare.ts",
86 "sveltekit/source": "src/sveltekit/source.ts",
87 "waku/index": "src/waku/index.ts",
88 "waku/adapter": "src/waku/adapter.ts",
89 "waku/aws": "src/waku/aws.ts",
90 "waku/node": "src/waku/node.ts",
91 "waku/aws-adapter": "src/waku/aws-adapter.ts",
92 "waku/cloudflare": "src/waku/cloudflare.ts",
93 "waku/source": "src/waku/source.ts",
94 "vocs/index": "src/vocs/index.ts",
95 "vocs/cloudflare": "src/vocs/cloudflare.ts",
96 "vocs/node": "src/vocs/node.ts",
97 "vocs/source": "src/vocs/source.ts",
98 },
99 exports: false,
100 outDir: "dist",
101 tsconfig: "tsconfig.node.json",
102 format: "esm",
103 target: "esnext",
104 dts: false,
105 shims: false,
106 sourcemap: true,
107 deps: {
108 alwaysBundle: [
109 /^@astrojs\/internal-helpers(?:\/|$)/,
110 /^@astrojs\/underscore-redirects(?:\/|$)/,
111 ],
112 // Fail the build if another dependency is bundled accidentally.
113 onlyBundle: ["@astrojs/internal-helpers", "@astrojs/underscore-redirects"],
114 },
115 inputOptions: {
116 external: [
117 /^(?:astro|cloudflare|virtual):/,
118 /^nitropack(?:\/|$)/,
119 /^alchemy(?:\/|$)/,
120 /^@alchemy\.run\/redis(?:\/|$)/,
121 /^@distilled\.cloud\/aws(?:\/|$)/,
122 ],
123 makeAbsoluteExternalsRelative: true,
124 },
125 outputOptions: {
126 entryFileNames: "[name].js",
127 chunkFileNames: "_chunks/[name]-[hash].js",
128 },
129 },
130 // The Astro cache provider runs in the Worker. It builds alone so its
131 // entry never changes how the main build splits chunks, which modules
132 // that resolve siblings via `import.meta.url` depend on.
133 {
134 cwd: ".",
135 entry: { "astro/runtime/cache/provider": "src/astro/runtime/cache/provider.ts" },
136 exports: false,
137 outDir: "dist",
138 clean: false,
139 tsconfig: "tsconfig.runtime.json",
140 format: "esm",
141 target: "esnext",
142 dts: false,
143 shims: false,
144 sourcemap: true,
145 deps: { onlyBundle: [] },
146 inputOptions: {
147 external: [/^(?:astro|cloudflare):/, /^astro(?:\/|$)/],
148 makeAbsoluteExternalsRelative: true,
149 },
150 outputOptions: {
151 entryFileNames: "[name].js",
152 codeSplitting: false,
153 },
154 },
155 {
156 cwd: ".",
157 entry: { "nuxt/dev/plugin": "src/nuxt/dev/plugin.ts" },
158 exports: false,
159 outDir: "dist",
160 clean: false,
161 tsconfig: "tsconfig.node.json",
162 format: "esm",
163 target: "esnext",
164 dts: false,
165 shims: false,
166 sourcemap: true,
167 deps: { onlyBundle: false },
168 inputOptions: {
169 external: [/^nitropack(?:\/|$)/],
170 makeAbsoluteExternalsRelative: true,
171 },
172 outputOptions: {
173 entryFileNames: "[name].js",
174 codeSplitting: false,
175 },
176 },
177 ]);