@guren/plugin-vercel 0.3.0 → 0.4.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 (3) hide show
  1. package/dist/index.d.ts +23 -24
  2. package/dist/index.js +190 -202
  3. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -1,35 +1,34 @@
1
- import { ServiceProviderConstructor } from '@guren/core';
2
- import { PathLike, DatabaseDialect } from '@guren/core/internal/deploy-build';
3
-
1
+ import { ServiceProviderConstructor } from "@guren/core";
2
+ import { DatabaseDialect, PathLike } from "@guren/core/internal/deploy-build";
3
+ //#region src/index.d.ts
4
4
  interface VercelAppLike {
5
- boot(): Promise<void>;
6
- fetch(request: Request): Response | Promise<Response>;
5
+ boot(): Promise<void>;
6
+ fetch(request: Request): Response | Promise<Response>;
7
7
  }
8
8
  interface VercelHandler {
9
- fetch(request: Request): Response | Promise<Response>;
9
+ fetch(request: Request): Response | Promise<Response>;
10
10
  }
11
11
  interface BuildVercelOutputOptions {
12
- rootDir?: PathLike;
13
- entrypoint?: PathLike;
14
- outputDir?: PathLike;
15
- publicDir?: PathLike;
16
- docsDir?: PathLike;
17
- ssrDir?: PathLike;
18
- migrationsDir?: PathLike;
19
- /**
20
- * Databases this app connects to, overriding what is read from
21
- * `config/database.ts`. Every other dialect's client is stubbed out of the
22
- * bundle. Pass this when the config reaches a factory without naming it and
23
- * the build reports that it could not tell.
24
- */
25
- databaseDialects?: readonly DatabaseDialect[];
12
+ rootDir?: PathLike;
13
+ entrypoint?: PathLike;
14
+ outputDir?: PathLike;
15
+ publicDir?: PathLike;
16
+ docsDir?: PathLike;
17
+ ssrDir?: PathLike;
18
+ migrationsDir?: PathLike;
19
+ /**
20
+ * Databases this app connects to, overriding what is read from
21
+ * `config/database.ts`. Every other dialect's client is stubbed out of the
22
+ * bundle. Pass this when the config reaches a factory without naming it and
23
+ * the build reports that it could not tell.
24
+ */
25
+ databaseDialects?: readonly DatabaseDialect[];
26
26
  }
27
27
  /**
28
28
  * Configuration for the Vercel plugin. Currently empty — reserved so future
29
29
  * fields never force another registration-shape change.
30
30
  */
31
- interface VercelPluginConfig {
32
- }
31
+ interface VercelPluginConfig {}
33
32
  /**
34
33
  * Register the Vercel plugin.
35
34
  *
@@ -41,5 +40,5 @@ interface VercelPluginConfig {
41
40
  declare function vercelPlugin(config?: VercelPluginConfig): ServiceProviderConstructor;
42
41
  declare function createVercelHandler(app: VercelAppLike): Promise<VercelHandler>;
43
42
  declare function buildVercelOutput(options?: BuildVercelOutputOptions): Promise<void>;
44
-
45
- export { type BuildVercelOutputOptions, type VercelAppLike, type VercelHandler, type VercelPluginConfig, buildVercelOutput, createVercelHandler, vercelPlugin };
43
+ //#endregion
44
+ export { BuildVercelOutputOptions, VercelAppLike, VercelHandler, VercelPluginConfig, buildVercelOutput, createVercelHandler, vercelPlugin };
package/dist/index.js CHANGED
@@ -1,221 +1,209 @@
1
- // src/index.ts
2
- import { cpSync, existsSync, mkdirSync, writeFileSync } from "fs";
3
- import { basename, extname, resolve } from "path";
1
+ import { cpSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
2
+ import { basename, extname, resolve } from "node:path";
4
3
  import { definePlugin } from "@guren/core";
5
- import {
6
- assertOutputDirOutsideRoot,
7
- DEV_ONLY_MODULES,
8
- MCP_SDK_SUBPATH_PREFIX,
9
- renderDevOnlyStub,
10
- resetOutputDir,
11
- resolveClientAssetEnv,
12
- resolvePathLike,
13
- resolveSsrEntryFile,
14
- ssrRuntimePaths,
15
- unusedSqlClients
16
- } from "@guren/core/internal/deploy-build";
17
- var LABEL = "Vercel build";
18
- var factory = definePlugin({
19
- name: "vercel",
20
- register() {
21
- }
4
+ import { DEV_ONLY_MODULES, MCP_SDK_SUBPATH_PREFIX, assertOutputDirOutsideRoot, clientManifestJson, renderDevOnlyStub, resetOutputDir, resolveClientAssetEnv, resolvePathLike, resolveSsrEntryFile, ssrRuntimePaths, unusedSqlClients } from "@guren/core/internal/deploy-build";
5
+ //#region src/index.ts
6
+ /** Prefixes every diagnostic this build emits. */
7
+ const LABEL = "Vercel build";
8
+ const factory = definePlugin({
9
+ name: "vercel",
10
+ register() {}
22
11
  });
12
+ /**
13
+ * Register the Vercel plugin.
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * createApp({ providers: [vercelPlugin()] })
18
+ * ```
19
+ */
23
20
  function vercelPlugin(config = {}) {
24
- return factory(config);
21
+ return factory(config);
25
22
  }
26
23
  async function createVercelHandler(app) {
27
- await app.boot();
28
- return {
29
- fetch(request) {
30
- return app.fetch(request);
31
- }
32
- };
24
+ await app.boot();
25
+ return { fetch(request) {
26
+ return app.fetch(request);
27
+ } };
33
28
  }
34
29
  async function buildVercelOutput(options = {}) {
35
- const root = resolvePathLike(options.rootDir ?? new URL("..", import.meta.url));
36
- const out = resolvePathLike(options.outputDir ?? resolve(root, ".vercel/output"));
37
- const funcDir = resolve(out, "functions/index.func");
38
- const entrypoint = resolvePathLike(options.entrypoint ?? resolve(root, "src/vercel.ts"));
39
- const handler = `${basename(entrypoint, extname(entrypoint))}.js`;
40
- const publicDir = resolvePathLike(options.publicDir ?? resolve(root, "public"));
41
- const docsDir = resolvePathLike(options.docsDir ?? resolveNearestDocsDir(root) ?? resolve(root, "docs"));
42
- const ssrDir = resolvePathLike(options.ssrDir ?? resolve(root, ".guren/ssr"));
43
- const migrationsDir = resolvePathLike(options.migrationsDir ?? resolve(root, "db/migrations"));
44
- assertOutputDirOutsideRoot(out, root, LABEL);
45
- if (!existsSync(entrypoint)) {
46
- throw new Error(
47
- `${LABEL}: entrypoint not found at ${entrypoint}. Run \`bunx guren plugin @guren/plugin-vercel\` to scaffold src/vercel.ts, or pass "entrypoint".`
48
- );
49
- }
50
- const env = buildVercelEnvironment(publicDir, ssrDir);
51
- resetOutputDir(out, root, LABEL);
52
- mkdirSync(funcDir, { recursive: true });
53
- mkdirSync(resolve(out, "static"), { recursive: true });
54
- writeFileSync(
55
- resolve(out, "config.json"),
56
- JSON.stringify(
57
- {
58
- version: 3,
59
- routes: [
60
- // Built assets self-reference the Vite plugin's derived base,
61
- // `/public/assets/`, while the files themselves are copied to the
62
- // output root. Without this the entry script still loads — its path
63
- // is injected directly — but every chunk it imports falls through
64
- // to the function and comes back as HTML.
65
- //
66
- // A `rewrites` entry in vercel.json only covers builds Vercel runs
67
- // itself; a `--prebuilt` upload is routed by this file alone, which
68
- // is the flow the deployment guide documents.
69
- { src: "/public/(.*)", dest: "/$1" },
70
- { handle: "filesystem" },
71
- { src: "/(.*)", dest: "/index" }
72
- ]
73
- },
74
- null,
75
- 2
76
- )
77
- );
78
- writeFileSync(
79
- resolve(funcDir, ".vc-config.json"),
80
- JSON.stringify(
81
- {
82
- handler,
83
- runtime: "bun1.x",
84
- launcherType: "Nodejs",
85
- shouldAddHelpers: true,
86
- environment: env
87
- },
88
- null,
89
- 2
90
- )
91
- );
92
- await bundleFunction({ entrypoint, funcDir, root, dialects: options.databaseDialects });
93
- if (existsSync(ssrDir)) {
94
- cpSync(ssrDir, resolve(funcDir, ".guren/ssr"), { recursive: true });
95
- }
96
- if (existsSync(migrationsDir)) {
97
- cpSync(migrationsDir, resolve(funcDir, "db/migrations"), { recursive: true });
98
- }
99
- if (existsSync(docsDir)) {
100
- cpSync(docsDir, resolve(funcDir, "docs"), { recursive: true });
101
- }
102
- if (existsSync(publicDir)) {
103
- cpSync(publicDir, resolve(out, "static"), { recursive: true });
104
- }
30
+ const root = resolvePathLike(options.rootDir ?? new URL("..", import.meta.url));
31
+ const out = resolvePathLike(options.outputDir ?? resolve(root, ".vercel/output"));
32
+ const funcDir = resolve(out, "functions/index.func");
33
+ const entrypoint = resolvePathLike(options.entrypoint ?? resolve(root, "src/vercel.ts"));
34
+ const handler = `${basename(entrypoint, extname(entrypoint))}.js`;
35
+ const publicDir = resolvePathLike(options.publicDir ?? resolve(root, "public"));
36
+ const docsDir = resolvePathLike(options.docsDir ?? resolveNearestDocsDir(root) ?? resolve(root, "docs"));
37
+ const ssrDir = resolvePathLike(options.ssrDir ?? resolve(root, ".guren/ssr"));
38
+ const migrationsDir = resolvePathLike(options.migrationsDir ?? resolve(root, "db/migrations"));
39
+ assertOutputDirOutsideRoot(out, root, LABEL);
40
+ if (!existsSync(entrypoint)) throw new Error(`${LABEL}: entrypoint not found at ${entrypoint}. Run \`bunx guren plugin @guren/plugin-vercel\` to scaffold src/vercel.ts, or pass "entrypoint".`);
41
+ const env = buildVercelEnvironment(publicDir, ssrDir);
42
+ resetOutputDir(out, root, LABEL);
43
+ mkdirSync(funcDir, { recursive: true });
44
+ mkdirSync(resolve(out, "static"), { recursive: true });
45
+ writeFileSync(resolve(out, "config.json"), JSON.stringify({
46
+ version: 3,
47
+ routes: [
48
+ {
49
+ src: "/public/(.*)",
50
+ dest: "/$1"
51
+ },
52
+ { handle: "filesystem" },
53
+ {
54
+ src: "/(.*)",
55
+ dest: "/index"
56
+ }
57
+ ]
58
+ }, null, 2));
59
+ writeFileSync(resolve(funcDir, ".vc-config.json"), JSON.stringify({
60
+ handler,
61
+ runtime: "bun1.x",
62
+ launcherType: "Nodejs",
63
+ shouldAddHelpers: true,
64
+ environment: env
65
+ }, null, 2));
66
+ await bundleFunction({
67
+ entrypoint,
68
+ funcDir,
69
+ root,
70
+ dialects: options.databaseDialects,
71
+ viteManifest: clientManifestJson(publicDir)
72
+ });
73
+ if (existsSync(ssrDir)) cpSync(ssrDir, resolve(funcDir, ".guren/ssr"), { recursive: true });
74
+ if (existsSync(migrationsDir)) cpSync(migrationsDir, resolve(funcDir, "db/migrations"), { recursive: true });
75
+ if (existsSync(docsDir)) cpSync(docsDir, resolve(funcDir, "docs"), { recursive: true });
76
+ if (existsSync(publicDir)) cpSync(publicDir, resolve(out, "static"), { recursive: true });
105
77
  }
106
- var MCP_UNAVAILABLE = "The MCP endpoint is unavailable on Vercel \u2014 it generates files on disk, and the function filesystem is read-only.";
107
- var UNAVAILABLE_ON_VERCEL = {
108
- sqlite: null,
109
- vite: "The Vite dev server is unavailable on Vercel \u2014 assets are served from the static output directory.",
110
- mcp: MCP_UNAVAILABLE
78
+ const MCP_UNAVAILABLE = "The MCP endpoint is unavailable on Vercel — it generates files on disk, and the function filesystem is read-only.";
79
+ /**
80
+ * Why each dev-only module cannot run here, or `null` for one that can and is
81
+ * therefore left alone.
82
+ *
83
+ * `sqlite` is the `null`, and it is written as an entry rather than filtered
84
+ * out somewhere else so the decision sits where the reason does: the function
85
+ * runs on Vercel's Bun runtime, so `bun:sqlite` is a working database here —
86
+ * unlike on Workers and Lambda, whose tables name a replacement for it.
87
+ * Stubbing it would break an app that ships a read-only sqlite file beside
88
+ * its function.
89
+ *
90
+ * Keyed on every kind `DEV_ONLY_MODULES` contains, so a kind added there is a
91
+ * compile error here rather than a module that silently stubs to `undefined`.
92
+ */
93
+ const UNAVAILABLE_ON_VERCEL = {
94
+ sqlite: null,
95
+ vite: "The Vite dev server is unavailable on Vercel — assets are served from the static output directory.",
96
+ mcp: MCP_UNAVAILABLE
111
97
  };
98
+ /**
99
+ * Modules replaced with throwing stubs, in the order they are matched.
100
+ *
101
+ * Two separate reasons, both of them the same defect shape — a *literal*
102
+ * dynamic import of a package the app never installed, which a bundler
103
+ * follows whether or not the branch can be taken:
104
+ *
105
+ * - The dev-only ones. A scaffolded app could not be bundled for Vercel at
106
+ * all: the disabled MCP endpoint's `import("@guren/cli")` resolves, and the
107
+ * CLI's own `import("@guren/openapi")` behind it does not. Lambda never saw
108
+ * this because it has stubbed these since it shipped.
109
+ * - The database clients for dialects the app does not use, decided per app
110
+ * rather than per platform — the ones it *does* use are load-bearing here,
111
+ * unlike on Workers where D1 is the only database.
112
+ */
112
113
  function stubbedModules(root, dialects) {
113
- const devOnly = DEV_ONLY_MODULES.flatMap((module) => {
114
- const message = UNAVAILABLE_ON_VERCEL[module.kind];
115
- return message === null ? [] : [[module.specifier, renderDevOnlyStub(module, message)]];
116
- });
117
- const unused = unusedSqlClients({ root, label: LABEL, dialects }).map(({ module, message }) => [
118
- module.specifier,
119
- renderDevOnlyStub(module, message)
120
- ]);
121
- return Object.fromEntries([...devOnly, ...unused]);
114
+ const devOnly = DEV_ONLY_MODULES.flatMap((module) => {
115
+ const message = UNAVAILABLE_ON_VERCEL[module.kind];
116
+ return message === null ? [] : [[module.specifier, renderDevOnlyStub(module, message)]];
117
+ });
118
+ const unused = unusedSqlClients({
119
+ root,
120
+ label: LABEL,
121
+ dialects
122
+ }).map(({ module, message }) => [module.specifier, renderDevOnlyStub(module, message)]);
123
+ return Object.fromEntries([...devOnly, ...unused]);
122
124
  }
123
- var unlistedMcpStub = `throw new Error(${JSON.stringify(MCP_UNAVAILABLE)})
124
- `;
125
+ /**
126
+ * Fallback for an MCP SDK subpath `DEV_ONLY_MODULES` does not name. It cannot
127
+ * know which names the importer destructures, so it throws on evaluation
128
+ * rather than resolving to an empty module: a subpath reached from app code
129
+ * (not Guren's disabled MCP endpoint) must fail loudly at build or cold start,
130
+ * never silently hand back missing exports.
131
+ */
132
+ const unlistedMcpStub = `throw new Error(${JSON.stringify(MCP_UNAVAILABLE)})\n`;
133
+ /**
134
+ * Bundle the function with Bun's JS API rather than by spawning `bun build`.
135
+ *
136
+ * The CLI has no way to replace a module — no alias flag, no plugin flag — and
137
+ * this build needs one, which is why this platform had no stub mechanism at
138
+ * all while the other two did. The API takes plugins.
139
+ */
125
140
  async function bundleFunction(input) {
126
- const stubs = stubbedModules(input.root, input.dialects);
127
- const filter = new RegExp(
128
- `^(?:${[...Object.keys(stubs).map(escapeRegExp), `${escapeRegExp(MCP_SDK_SUBPATH_PREFIX)}.+`].join("|")})$`
129
- );
130
- const result = await Bun.build({
131
- entrypoints: [input.entrypoint],
132
- // `Bun.build` rejects with a bare "Bundle failed" AggregateError by
133
- // default (Bun >= 1.2), which discards the one line that matters — the
134
- // module it could not resolve. Opting out of that is what makes the
135
- // `result.logs` report below reachable at all.
136
- throw: false,
137
- outdir: input.funcDir,
138
- target: "bun",
139
- // Whitespace and syntax only — never plain `minify: true`, which also
140
- // mangles identifiers. Guren keys durable records on class names: the
141
- // queue registry stores each job's wire name (its class name unless it
142
- // declares a jobName) in every queued message, and notifications persist
143
- // `constructor.name` as their `type`. Mangled, a job dispatched by one
144
- // deploy resolves to nothing after the next.
145
- //
146
- // Not `keepNames`: as of Bun 1.3.14 it is accepted and silently leaves
147
- // class names mangled, so it cannot replace this.
148
- minify: { whitespace: true, syntax: true, identifiers: false },
149
- define: {
150
- // `bun build` inlines `process.env.NODE_ENV` at bundle time (defaulting
151
- // to "development"), so pin it to "production" for the deployed function.
152
- "process.env.NODE_ENV": '"production"'
153
- },
154
- plugins: [
155
- {
156
- name: "guren-vercel-stubs",
157
- setup(build) {
158
- build.onResolve({ filter }, (args) => ({ path: args.path, namespace: "guren-vercel-stub" }));
159
- build.onLoad({ filter: /.*/, namespace: "guren-vercel-stub" }, (args) => ({
160
- contents: stubs[args.path] ?? unlistedMcpStub,
161
- loader: "js"
162
- }));
163
- }
164
- }
165
- ]
166
- });
167
- if (!result.success) {
168
- throw new Error(`${LABEL}: bun build failed.
169
- ${result.logs.map((log) => String(log)).join("\n")}`);
170
- }
141
+ const stubs = stubbedModules(input.root, input.dialects);
142
+ const filter = new RegExp(`^(?:${[...Object.keys(stubs).map(escapeRegExp), `${escapeRegExp(MCP_SDK_SUBPATH_PREFIX)}.+`].join("|")})$`);
143
+ const result = await Bun.build({
144
+ entrypoints: [input.entrypoint],
145
+ throw: false,
146
+ outdir: input.funcDir,
147
+ target: "bun",
148
+ minify: {
149
+ whitespace: true,
150
+ syntax: true,
151
+ identifiers: false
152
+ },
153
+ define: {
154
+ "process.env.NODE_ENV": "\"production\"",
155
+ ...input.viteManifest ? { "process.env.GUREN_VITE_MANIFEST": JSON.stringify(input.viteManifest) } : {}
156
+ },
157
+ plugins: [{
158
+ name: "guren-vercel-stubs",
159
+ setup(build) {
160
+ build.onResolve({ filter }, (args) => ({
161
+ path: args.path,
162
+ namespace: "guren-vercel-stub"
163
+ }));
164
+ build.onLoad({
165
+ filter: /.*/,
166
+ namespace: "guren-vercel-stub"
167
+ }, (args) => ({
168
+ contents: stubs[args.path] ?? unlistedMcpStub,
169
+ loader: "js"
170
+ }));
171
+ }
172
+ }]
173
+ });
174
+ if (!result.success) throw new Error(`${LABEL}: bun build failed.\n${result.logs.map((log) => String(log)).join("\n")}`);
171
175
  }
172
176
  function escapeRegExp(value) {
173
- return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
177
+ return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
174
178
  }
175
179
  function buildVercelEnvironment(publicDir, ssrDir) {
176
- const env = {
177
- NODE_ENV: "production",
178
- BUN_RUNTIME_TRANSPILER_CACHE_PATH: "/tmp/.bun-cache",
179
- BUN_INSTALL_CACHE_DIR: "/tmp/.bun-install-cache",
180
- TMPDIR: "/tmp"
181
- };
182
- const assetEnv = resolveClientAssetEnv(publicDir, "resources/js/app.tsx", LABEL);
183
- if (assetEnv.entry) {
184
- env.GUREN_INERTIA_ENTRY = assetEnv.entry;
185
- }
186
- if (assetEnv.styles) {
187
- env.GUREN_INERTIA_STYLES = assetEnv.styles;
188
- }
189
- const ssrFile = resolveSsrEntryFile(ssrDir, "resources/js/ssr.tsx", LABEL);
190
- if (ssrFile) {
191
- const ssrPaths = ssrRuntimePaths(ssrDir, ssrFile, "./.guren/ssr");
192
- env.GUREN_INERTIA_SSR_ENTRY = ssrPaths.entry;
193
- if (ssrPaths.manifest) {
194
- env.GUREN_INERTIA_SSR_MANIFEST = ssrPaths.manifest;
195
- }
196
- }
197
- env.GUREN_INERTIA_IMPORT_MAP = JSON.stringify({
198
- "@guren/inertia-client": "/vendor/inertia-client.tsx"
199
- });
200
- return env;
180
+ const env = {
181
+ NODE_ENV: "production",
182
+ BUN_RUNTIME_TRANSPILER_CACHE_PATH: "/tmp/.bun-cache",
183
+ BUN_INSTALL_CACHE_DIR: "/tmp/.bun-install-cache",
184
+ TMPDIR: "/tmp"
185
+ };
186
+ const assetEnv = resolveClientAssetEnv(publicDir, "resources/js/app.tsx", LABEL);
187
+ if (assetEnv.entry) env.GUREN_INERTIA_ENTRY = assetEnv.entry;
188
+ if (assetEnv.styles) env.GUREN_INERTIA_STYLES = assetEnv.styles;
189
+ const ssrFile = resolveSsrEntryFile(ssrDir, "resources/js/ssr.tsx", LABEL);
190
+ if (ssrFile) {
191
+ const ssrPaths = ssrRuntimePaths(ssrDir, ssrFile, "./.guren/ssr");
192
+ env.GUREN_INERTIA_SSR_ENTRY = ssrPaths.entry;
193
+ if (ssrPaths.manifest) env.GUREN_INERTIA_SSR_MANIFEST = ssrPaths.manifest;
194
+ }
195
+ env.GUREN_INERTIA_IMPORT_MAP = JSON.stringify({ "@guren/inertia-client": "/vendor/inertia-client.tsx" });
196
+ return env;
201
197
  }
202
198
  function resolveNearestDocsDir(startDir, maxDepth = 6) {
203
- let currentDir = startDir;
204
- for (let depth = 0; depth < maxDepth; depth += 1) {
205
- const candidate = resolve(currentDir, "docs");
206
- if (existsSync(candidate)) {
207
- return candidate;
208
- }
209
- const parent = resolve(currentDir, "..");
210
- if (parent === currentDir) {
211
- break;
212
- }
213
- currentDir = parent;
214
- }
215
- return void 0;
199
+ let currentDir = startDir;
200
+ for (let depth = 0; depth < maxDepth; depth += 1) {
201
+ const candidate = resolve(currentDir, "docs");
202
+ if (existsSync(candidate)) return candidate;
203
+ const parent = resolve(currentDir, "..");
204
+ if (parent === currentDir) break;
205
+ currentDir = parent;
206
+ }
216
207
  }
217
- export {
218
- buildVercelOutput,
219
- createVercelHandler,
220
- vercelPlugin
221
- };
208
+ //#endregion
209
+ export { buildVercelOutput, createVercelHandler, vercelPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guren/plugin-vercel",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,16 +30,16 @@
30
30
  }
31
31
  },
32
32
  "scripts": {
33
- "build": "tsup",
33
+ "build": "bun --bun tsdown",
34
34
  "test": "bun test",
35
35
  "typecheck": "tsc --noEmit"
36
36
  },
37
37
  "dependencies": {
38
- "@guren/core": "^1.6.2"
38
+ "@guren/core": "^1.10.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^20.14.10",
42
- "tsup": "^8.5.0",
43
- "typescript": "^5.4.0"
42
+ "tsdown": "^0.22.14",
43
+ "typescript": "^7.0.2"
44
44
  }
45
45
  }