@guren/plugin-vercel 0.3.0 → 0.3.1
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.
- package/dist/index.d.ts +23 -24
- package/dist/index.js +186 -202
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { ServiceProviderConstructor } from
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
-
|
|
5
|
+
boot(): Promise<void>;
|
|
6
|
+
fetch(request: Request): Response | Promise<Response>;
|
|
7
7
|
}
|
|
8
8
|
interface VercelHandler {
|
|
9
|
-
|
|
9
|
+
fetch(request: Request): Response | Promise<Response>;
|
|
10
10
|
}
|
|
11
11
|
interface BuildVercelOutputOptions {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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 {
|
|
43
|
+
//#endregion
|
|
44
|
+
export { BuildVercelOutputOptions, VercelAppLike, VercelHandler, VercelPluginConfig, buildVercelOutput, createVercelHandler, vercelPlugin };
|
package/dist/index.js
CHANGED
|
@@ -1,221 +1,205 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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, 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
|
-
|
|
21
|
+
return factory(config);
|
|
25
22
|
}
|
|
26
23
|
async function createVercelHandler(app) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
+
});
|
|
72
|
+
if (existsSync(ssrDir)) cpSync(ssrDir, resolve(funcDir, ".guren/ssr"), { recursive: true });
|
|
73
|
+
if (existsSync(migrationsDir)) cpSync(migrationsDir, resolve(funcDir, "db/migrations"), { recursive: true });
|
|
74
|
+
if (existsSync(docsDir)) cpSync(docsDir, resolve(funcDir, "docs"), { recursive: true });
|
|
75
|
+
if (existsSync(publicDir)) cpSync(publicDir, resolve(out, "static"), { recursive: true });
|
|
105
76
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
77
|
+
const MCP_UNAVAILABLE = "The MCP endpoint is unavailable on Vercel — it generates files on disk, and the function filesystem is read-only.";
|
|
78
|
+
/**
|
|
79
|
+
* Why each dev-only module cannot run here, or `null` for one that can and is
|
|
80
|
+
* therefore left alone.
|
|
81
|
+
*
|
|
82
|
+
* `sqlite` is the `null`, and it is written as an entry rather than filtered
|
|
83
|
+
* out somewhere else so the decision sits where the reason does: the function
|
|
84
|
+
* runs on Vercel's Bun runtime, so `bun:sqlite` is a working database here —
|
|
85
|
+
* unlike on Workers and Lambda, whose tables name a replacement for it.
|
|
86
|
+
* Stubbing it would break an app that ships a read-only sqlite file beside
|
|
87
|
+
* its function.
|
|
88
|
+
*
|
|
89
|
+
* Keyed on every kind `DEV_ONLY_MODULES` contains, so a kind added there is a
|
|
90
|
+
* compile error here rather than a module that silently stubs to `undefined`.
|
|
91
|
+
*/
|
|
92
|
+
const UNAVAILABLE_ON_VERCEL = {
|
|
93
|
+
sqlite: null,
|
|
94
|
+
vite: "The Vite dev server is unavailable on Vercel — assets are served from the static output directory.",
|
|
95
|
+
mcp: MCP_UNAVAILABLE
|
|
111
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* Modules replaced with throwing stubs, in the order they are matched.
|
|
99
|
+
*
|
|
100
|
+
* Two separate reasons, both of them the same defect shape — a *literal*
|
|
101
|
+
* dynamic import of a package the app never installed, which a bundler
|
|
102
|
+
* follows whether or not the branch can be taken:
|
|
103
|
+
*
|
|
104
|
+
* - The dev-only ones. A scaffolded app could not be bundled for Vercel at
|
|
105
|
+
* all: the disabled MCP endpoint's `import("@guren/cli")` resolves, and the
|
|
106
|
+
* CLI's own `import("@guren/openapi")` behind it does not. Lambda never saw
|
|
107
|
+
* this because it has stubbed these since it shipped.
|
|
108
|
+
* - The database clients for dialects the app does not use, decided per app
|
|
109
|
+
* rather than per platform — the ones it *does* use are load-bearing here,
|
|
110
|
+
* unlike on Workers where D1 is the only database.
|
|
111
|
+
*/
|
|
112
112
|
function stubbedModules(root, dialects) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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({
|
|
118
|
+
root,
|
|
119
|
+
label: LABEL,
|
|
120
|
+
dialects
|
|
121
|
+
}).map(({ module, message }) => [module.specifier, renderDevOnlyStub(module, message)]);
|
|
122
|
+
return Object.fromEntries([...devOnly, ...unused]);
|
|
122
123
|
}
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
/**
|
|
125
|
+
* Fallback for an MCP SDK subpath `DEV_ONLY_MODULES` does not name. It cannot
|
|
126
|
+
* know which names the importer destructures, so it throws on evaluation
|
|
127
|
+
* rather than resolving to an empty module: a subpath reached from app code
|
|
128
|
+
* (not Guren's disabled MCP endpoint) must fail loudly at build or cold start,
|
|
129
|
+
* never silently hand back missing exports.
|
|
130
|
+
*/
|
|
131
|
+
const unlistedMcpStub = `throw new Error(${JSON.stringify(MCP_UNAVAILABLE)})\n`;
|
|
132
|
+
/**
|
|
133
|
+
* Bundle the function with Bun's JS API rather than by spawning `bun build`.
|
|
134
|
+
*
|
|
135
|
+
* The CLI has no way to replace a module — no alias flag, no plugin flag — and
|
|
136
|
+
* this build needs one, which is why this platform had no stub mechanism at
|
|
137
|
+
* all while the other two did. The API takes plugins.
|
|
138
|
+
*/
|
|
125
139
|
async function bundleFunction(input) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
}
|
|
140
|
+
const stubs = stubbedModules(input.root, input.dialects);
|
|
141
|
+
const filter = new RegExp(`^(?:${[...Object.keys(stubs).map(escapeRegExp), `${escapeRegExp(MCP_SDK_SUBPATH_PREFIX)}.+`].join("|")})$`);
|
|
142
|
+
const result = await Bun.build({
|
|
143
|
+
entrypoints: [input.entrypoint],
|
|
144
|
+
throw: false,
|
|
145
|
+
outdir: input.funcDir,
|
|
146
|
+
target: "bun",
|
|
147
|
+
minify: {
|
|
148
|
+
whitespace: true,
|
|
149
|
+
syntax: true,
|
|
150
|
+
identifiers: false
|
|
151
|
+
},
|
|
152
|
+
define: { "process.env.NODE_ENV": "\"production\"" },
|
|
153
|
+
plugins: [{
|
|
154
|
+
name: "guren-vercel-stubs",
|
|
155
|
+
setup(build) {
|
|
156
|
+
build.onResolve({ filter }, (args) => ({
|
|
157
|
+
path: args.path,
|
|
158
|
+
namespace: "guren-vercel-stub"
|
|
159
|
+
}));
|
|
160
|
+
build.onLoad({
|
|
161
|
+
filter: /.*/,
|
|
162
|
+
namespace: "guren-vercel-stub"
|
|
163
|
+
}, (args) => ({
|
|
164
|
+
contents: stubs[args.path] ?? unlistedMcpStub,
|
|
165
|
+
loader: "js"
|
|
166
|
+
}));
|
|
167
|
+
}
|
|
168
|
+
}]
|
|
169
|
+
});
|
|
170
|
+
if (!result.success) throw new Error(`${LABEL}: bun build failed.\n${result.logs.map((log) => String(log)).join("\n")}`);
|
|
171
171
|
}
|
|
172
172
|
function escapeRegExp(value) {
|
|
173
|
-
|
|
173
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
174
174
|
}
|
|
175
175
|
function buildVercelEnvironment(publicDir, ssrDir) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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;
|
|
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) env.GUREN_INERTIA_ENTRY = assetEnv.entry;
|
|
184
|
+
if (assetEnv.styles) env.GUREN_INERTIA_STYLES = assetEnv.styles;
|
|
185
|
+
const ssrFile = resolveSsrEntryFile(ssrDir, "resources/js/ssr.tsx", LABEL);
|
|
186
|
+
if (ssrFile) {
|
|
187
|
+
const ssrPaths = ssrRuntimePaths(ssrDir, ssrFile, "./.guren/ssr");
|
|
188
|
+
env.GUREN_INERTIA_SSR_ENTRY = ssrPaths.entry;
|
|
189
|
+
if (ssrPaths.manifest) env.GUREN_INERTIA_SSR_MANIFEST = ssrPaths.manifest;
|
|
190
|
+
}
|
|
191
|
+
env.GUREN_INERTIA_IMPORT_MAP = JSON.stringify({ "@guren/inertia-client": "/vendor/inertia-client.tsx" });
|
|
192
|
+
return env;
|
|
201
193
|
}
|
|
202
194
|
function resolveNearestDocsDir(startDir, maxDepth = 6) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
currentDir = parent;
|
|
214
|
-
}
|
|
215
|
-
return void 0;
|
|
195
|
+
let currentDir = startDir;
|
|
196
|
+
for (let depth = 0; depth < maxDepth; depth += 1) {
|
|
197
|
+
const candidate = resolve(currentDir, "docs");
|
|
198
|
+
if (existsSync(candidate)) return candidate;
|
|
199
|
+
const parent = resolve(currentDir, "..");
|
|
200
|
+
if (parent === currentDir) break;
|
|
201
|
+
currentDir = parent;
|
|
202
|
+
}
|
|
216
203
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
createVercelHandler,
|
|
220
|
-
vercelPlugin
|
|
221
|
-
};
|
|
204
|
+
//#endregion
|
|
205
|
+
export { buildVercelOutput, createVercelHandler, vercelPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guren/plugin-vercel",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "
|
|
33
|
+
"build": "bun --bun tsdown",
|
|
34
34
|
"test": "bun test",
|
|
35
35
|
"typecheck": "tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@guren/core": "^1.
|
|
38
|
+
"@guren/core": "^1.8.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^20.14.10",
|
|
42
|
-
"
|
|
43
|
-
"typescript": "^
|
|
42
|
+
"tsdown": "^0.22.14",
|
|
43
|
+
"typescript": "^7.0.2"
|
|
44
44
|
}
|
|
45
45
|
}
|