env-runner 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/README.md +217 -2
- package/dist/_chunks/common-base-runner.d.mts +434 -1
- package/dist/_chunks/common-base-runner.mjs +596 -7
- package/dist/_chunks/common-worker-utils.mjs +19 -477
- package/dist/_chunks/deno-process-runner.d.mts +4 -1
- package/dist/_chunks/deno-process-runner.mjs +7 -0
- package/dist/_chunks/miniflare-runner.d.mts +5 -2
- package/dist/_chunks/miniflare-runner.mjs +169 -43
- package/dist/_chunks/netlify-runner.d.mts +3 -1
- package/dist/_chunks/node-worker-runner.d.mts +3 -1
- package/dist/_chunks/node-worker-runner.mjs +7 -2
- package/dist/_chunks/plugin-hooks.mjs +1656 -0
- package/dist/_chunks/server.mjs +1 -0
- package/dist/_chunks/types.d.mts +1 -1
- package/dist/_chunks/vercel-runner.d.mts +3 -1
- package/dist/cli.mjs +0 -0
- package/dist/index.d.mts +6 -2
- package/dist/runners/bun-process/runner.d.mts +4 -1
- package/dist/runners/bun-process/runner.mjs +8 -1
- package/dist/runners/bun-process/worker.mjs +5 -4
- package/dist/runners/deno-process/worker.mjs +5 -4
- package/dist/runners/node-process/runner.d.mts +3 -1
- package/dist/runners/node-process/worker.mjs +5 -4
- package/dist/runners/node-worker/worker.mjs +5 -4
- package/dist/runners/self/runner.d.mts +3 -1
- package/dist/runners/self/runner.mjs +4 -0
- package/package.json +18 -18
- package/dist/_chunks/virtual-loader.mjs +0 -345
package/dist/_chunks/server.mjs
CHANGED
|
@@ -317,6 +317,7 @@ var EnvServer = class extends RunnerManager {
|
|
|
317
317
|
...this._opts.runnerOptions,
|
|
318
318
|
name: this._opts.name || this._opts.entry,
|
|
319
319
|
hooks: this._opts.hooks,
|
|
320
|
+
plugins: this._opts.plugins,
|
|
320
321
|
data: {
|
|
321
322
|
...this._opts.data,
|
|
322
323
|
...this._virtual && { virtual: { ...this._virtual } },
|
package/dist/_chunks/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IncomingMessage } from "node:http";
|
|
2
1
|
import { Socket } from "node:net";
|
|
2
|
+
import { IncomingMessage } from "node:http";
|
|
3
3
|
/**
|
|
4
4
|
* How a virtual module is served. Code formats are Node's load formats, plus
|
|
5
5
|
* `jsx`/`tsx` (Bun only). Raw formats follow import attribute types: `text`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkerHooks } from "./types.mjs";
|
|
2
|
-
import { EnvRunnerData } from "./common-base-runner.mjs";
|
|
2
|
+
import { EnvRunnerData, EnvRunnerPluginOption } from "./common-base-runner.mjs";
|
|
3
3
|
import { NodeWorkerEnvRunner } from "./node-worker-runner.mjs";
|
|
4
4
|
export declare class VercelEnvRunner extends NodeWorkerEnvRunner {
|
|
5
5
|
constructor(opts: {
|
|
@@ -7,6 +7,8 @@ export declare class VercelEnvRunner extends NodeWorkerEnvRunner {
|
|
|
7
7
|
workerEntry?: string;
|
|
8
8
|
hooks?: WorkerHooks;
|
|
9
9
|
data?: EnvRunnerData;
|
|
10
|
+
/** Host-side transform plugins (see `EnvRunnerPluginOption`). */
|
|
11
|
+
plugins?: EnvRunnerPluginOption[];
|
|
10
12
|
});
|
|
11
13
|
fetch(input: string | URL | Request, init?: RequestInit): Promise<Response>;
|
|
12
14
|
protected _runtimeType(): string;
|
package/dist/cli.mjs
CHANGED
|
File without changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnvRunner, FetchHandler, NodeUpgradeContext, RPCOptions, RunnerMessageListener, RunnerRPCHooks, UpgradeContext, UpgradeHandler, VirtualModule, VirtualModuleContent, VirtualModuleFormat, VirtualModuleSource, VirtualModuleUpdates, VirtualModules, WorkerAddress, WorkerHooks } from "./_chunks/types.mjs";
|
|
2
|
-
import { BaseEnvRunner, EnvRunnerData } from "./_chunks/common-base-runner.mjs";
|
|
2
|
+
import { BaseEnvRunner, EnvRunnerData, EnvRunnerPlugin, EnvRunnerPluginOption, PluginContext, PluginContextResolveOptions, PluginFilterExpression, PluginHook, PluginHookFilter, PluginLoadHandler, PluginLoadResult, PluginLog, PluginLogPosition, PluginModuleType, PluginResolveIdHandler, PluginResolveIdHook, PluginResolveIdOptions, PluginResolveIdResult, PluginResolvedId, PluginStringFilter, PluginTopLevelFilterExpression, PluginTransformFilter, PluginTransformHandler, PluginTransformMeta, PluginTransformResult } from "./_chunks/common-base-runner.mjs";
|
|
3
3
|
import { RuntimeDep, resolveRuntimeDep } from "./_chunks/common-runtime-deps.mjs";
|
|
4
4
|
import { DenoProcessEnvRunner } from "./_chunks/deno-process-runner.mjs";
|
|
5
5
|
import { MiniflareEnvRunner, MiniflareEnvRunnerOptions, MiniflareExportInfo, TransformResult } from "./_chunks/miniflare-runner.mjs";
|
|
@@ -71,6 +71,8 @@ interface LoadRunnerOptions {
|
|
|
71
71
|
workerEntry?: string;
|
|
72
72
|
hooks?: WorkerHooks;
|
|
73
73
|
data?: EnvRunnerData;
|
|
74
|
+
/** Host-side transform plugins (see `EnvRunnerPluginOption`). */
|
|
75
|
+
plugins?: EnvRunnerPluginOption[];
|
|
74
76
|
execArgv?: string[];
|
|
75
77
|
/** Runner-specific constructor options (e.g. `miniflare` for the `miniflare` runner). */
|
|
76
78
|
[key: string]: unknown;
|
|
@@ -87,6 +89,8 @@ interface EnvServerOptions {
|
|
|
87
89
|
hooks?: WorkerHooks;
|
|
88
90
|
/** Additional data passed to the runner. */
|
|
89
91
|
data?: Record<string, unknown>;
|
|
92
|
+
/** Host-side transform plugins, passed to every runner the server creates. */
|
|
93
|
+
plugins?: EnvRunnerPluginOption[];
|
|
90
94
|
/** Custom exec arguments (e.g. `--inspect`). */
|
|
91
95
|
execArgv?: string[];
|
|
92
96
|
/** Enable watch mode to auto-reload on entry file changes. */
|
|
@@ -162,4 +166,4 @@ export declare const RESERVED_RUNTIME_OPTIONS: {
|
|
|
162
166
|
};
|
|
163
167
|
/** Callers add `fetch` (bound lazily so reloads swap it) and the crossws plugin. */
|
|
164
168
|
export declare function toServerOptions(entry: AppEntry): Omit<ServerOptions, "fetch">;
|
|
165
|
-
export { type AppEntry, type AppEntryIPC, type AppEntryIPCContext, BaseEnvRunner, DenoProcessEnvRunner, type EnvRunnerData as DenoProcessEnvRunnerData, type EnvRunner, type EnvRunnerData, type EnvServerOptions, type FetchHandler, type LoadRunnerOptions, MiniflareEnvRunner, type MiniflareEnvRunnerOptions, type MiniflareExportInfo, NetlifyEnvRunner, type NodeUpgradeContext, type RPCOptions, type RunnerMessageListener, type RunnerName, type RunnerRPCHooks, type RuntimeDep, type TransformResult, type UpgradeContext, type UpgradeHandler, VercelEnvRunner, type VirtualModule, type VirtualModuleContent, type VirtualModuleFormat, type VirtualModuleSource, type VirtualModuleUpdates, type VirtualModules, type WorkerAddress, type WorkerHooks, resolveRuntimeDep };
|
|
169
|
+
export { type AppEntry, type AppEntryIPC, type AppEntryIPCContext, BaseEnvRunner, DenoProcessEnvRunner, type EnvRunnerData as DenoProcessEnvRunnerData, type EnvRunner, type EnvRunnerData, type EnvRunnerPlugin, type EnvRunnerPluginOption, type EnvServerOptions, type FetchHandler, type LoadRunnerOptions, MiniflareEnvRunner, type MiniflareEnvRunnerOptions, type MiniflareExportInfo, NetlifyEnvRunner, type NodeUpgradeContext, type PluginContext, type PluginContextResolveOptions, type PluginFilterExpression, type PluginHook, type PluginHookFilter, type PluginLoadHandler, type PluginLoadResult, type PluginLog, type PluginLogPosition, type PluginModuleType, type PluginResolveIdHandler, type PluginResolveIdHook, type PluginResolveIdOptions, type PluginResolveIdResult, type PluginResolvedId, type PluginStringFilter, type PluginTopLevelFilterExpression, type PluginTransformFilter, type PluginTransformHandler, type PluginTransformMeta, type PluginTransformResult, type RPCOptions, type RunnerMessageListener, type RunnerName, type RunnerRPCHooks, type RuntimeDep, type TransformResult, type UpgradeContext, type UpgradeHandler, VercelEnvRunner, type VirtualModule, type VirtualModuleContent, type VirtualModuleFormat, type VirtualModuleSource, type VirtualModuleUpdates, type VirtualModules, type WorkerAddress, type WorkerHooks, resolveRuntimeDep };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkerHooks } from "../../_chunks/types.mjs";
|
|
2
|
-
import { BaseEnvRunner, EnvRunnerData } from "../../_chunks/common-base-runner.mjs";
|
|
2
|
+
import { BaseEnvRunner, EnvRunnerData, EnvRunnerPluginOption } from "../../_chunks/common-base-runner.mjs";
|
|
3
3
|
export declare class BunProcessEnvRunner extends BaseEnvRunner {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(opts: {
|
|
@@ -7,11 +7,14 @@ export declare class BunProcessEnvRunner extends BaseEnvRunner {
|
|
|
7
7
|
workerEntry?: string;
|
|
8
8
|
hooks?: WorkerHooks;
|
|
9
9
|
data?: EnvRunnerData;
|
|
10
|
+
/** Host-side transform plugins (see `EnvRunnerPluginOption`). */
|
|
11
|
+
plugins?: EnvRunnerPluginOption[];
|
|
10
12
|
execArgv?: string[];
|
|
11
13
|
});
|
|
12
14
|
sendMessage(message: unknown): void;
|
|
13
15
|
protected _hasRuntime(): boolean;
|
|
14
16
|
protected _runtimeType(): string;
|
|
17
|
+
protected _resolveConditions(): string[];
|
|
15
18
|
protected _closeRuntime(): Promise<void>;
|
|
16
19
|
}
|
|
17
20
|
export type { EnvRunnerData as BunProcessEnvRunnerData };
|
|
@@ -2,8 +2,8 @@ import { BaseEnvRunner } from "../../_chunks/common-base-runner.mjs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
|
-
import { execSync, spawn } from "node:child_process";
|
|
6
5
|
import { homedir } from "node:os";
|
|
6
|
+
import { execSync, spawn } from "node:child_process";
|
|
7
7
|
let _defaultEntry;
|
|
8
8
|
let _bunPath;
|
|
9
9
|
const _isBun = typeof Bun !== "undefined";
|
|
@@ -43,6 +43,13 @@ var BunProcessEnvRunner = class extends BaseEnvRunner {
|
|
|
43
43
|
_runtimeType() {
|
|
44
44
|
return "process";
|
|
45
45
|
}
|
|
46
|
+
_resolveConditions() {
|
|
47
|
+
return [
|
|
48
|
+
"bun",
|
|
49
|
+
"node",
|
|
50
|
+
"import"
|
|
51
|
+
];
|
|
52
|
+
}
|
|
46
53
|
async _closeRuntime() {
|
|
47
54
|
if (!this.#process) return;
|
|
48
55
|
this.#process.removeAllListeners?.();
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { handleUpdateVirtualModules } from "../../_chunks/plugin-hooks.mjs";
|
|
2
|
+
import { formatInitError, isVirtualEntry, parseServerAddress, registerWorkerHooks, reloadEntryModule, resolveEntry, toServerOptions } from "../../_chunks/common-worker-utils.mjs";
|
|
2
3
|
import { receiveProcessData } from "../../_chunks/common-process-data.mjs";
|
|
3
4
|
import { serve } from "srvx";
|
|
4
5
|
import { plugin } from "crossws/server";
|
|
5
6
|
process.on("disconnect", () => process.exit(0));
|
|
6
7
|
const data = await receiveProcessData();
|
|
7
8
|
const sendMessage = (message) => process.send(message);
|
|
8
|
-
let
|
|
9
|
+
let unregisterHooks;
|
|
9
10
|
let entry;
|
|
10
11
|
let server;
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
+
unregisterHooks = await registerWorkerHooks(data);
|
|
13
14
|
entry = await resolveEntry(data.entry, isVirtualEntry(data.entry));
|
|
14
15
|
server = serve({
|
|
15
16
|
...toServerOptions(entry),
|
|
@@ -38,7 +39,7 @@ process.send({ address: parseServerAddress(server) });
|
|
|
38
39
|
process.on("message", async (message) => {
|
|
39
40
|
if (message?.event === "shutdown") {
|
|
40
41
|
Promise.resolve(entry.ipc?.onClose?.()).then(() => server.close()).then(() => {
|
|
41
|
-
|
|
42
|
+
unregisterHooks();
|
|
42
43
|
process.send({ event: "exit" });
|
|
43
44
|
});
|
|
44
45
|
return;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { handleUpdateVirtualModules } from "../../_chunks/plugin-hooks.mjs";
|
|
2
|
+
import { formatInitError, isVirtualEntry, parseServerAddress, registerWorkerHooks, reloadEntryModule, resolveEntry, toServerOptions } from "../../_chunks/common-worker-utils.mjs";
|
|
2
3
|
import { receiveProcessData } from "../../_chunks/common-process-data.mjs";
|
|
3
4
|
import { serve } from "srvx";
|
|
4
5
|
import { plugin } from "crossws/server";
|
|
5
6
|
process.on("disconnect", () => process.exit(0));
|
|
6
7
|
const data = await receiveProcessData();
|
|
7
8
|
const sendMessage = (message) => process.send(message);
|
|
8
|
-
let
|
|
9
|
+
let unregisterHooks;
|
|
9
10
|
let entry;
|
|
10
11
|
let server;
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
+
unregisterHooks = await registerWorkerHooks(data);
|
|
13
14
|
entry = await resolveEntry(data.entry, isVirtualEntry(data.entry));
|
|
14
15
|
server = serve({
|
|
15
16
|
...toServerOptions(entry),
|
|
@@ -38,7 +39,7 @@ process.send({ address: parseServerAddress(server) });
|
|
|
38
39
|
process.on("message", async (message) => {
|
|
39
40
|
if (message?.event === "shutdown") {
|
|
40
41
|
Promise.resolve(entry.ipc?.onClose?.()).then(() => server.close()).then(() => {
|
|
41
|
-
|
|
42
|
+
unregisterHooks();
|
|
42
43
|
process.send({ event: "exit" });
|
|
43
44
|
});
|
|
44
45
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkerHooks } from "../../_chunks/types.mjs";
|
|
2
|
-
import { BaseEnvRunner, EnvRunnerData } from "../../_chunks/common-base-runner.mjs";
|
|
2
|
+
import { BaseEnvRunner, EnvRunnerData, EnvRunnerPluginOption } from "../../_chunks/common-base-runner.mjs";
|
|
3
3
|
export declare class NodeProcessEnvRunner extends BaseEnvRunner {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(opts: {
|
|
@@ -7,6 +7,8 @@ export declare class NodeProcessEnvRunner extends BaseEnvRunner {
|
|
|
7
7
|
workerEntry?: string;
|
|
8
8
|
hooks?: WorkerHooks;
|
|
9
9
|
data?: EnvRunnerData;
|
|
10
|
+
/** Host-side transform plugins (see `EnvRunnerPluginOption`). */
|
|
11
|
+
plugins?: EnvRunnerPluginOption[];
|
|
10
12
|
execArgv?: string[];
|
|
11
13
|
});
|
|
12
14
|
sendMessage(message: unknown): void;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { handleUpdateVirtualModules } from "../../_chunks/plugin-hooks.mjs";
|
|
2
|
+
import { formatInitError, isVirtualEntry, parseServerAddress, registerWorkerHooks, reloadEntryModule, resolveEntry, toServerOptions } from "../../_chunks/common-worker-utils.mjs";
|
|
2
3
|
import { receiveProcessData } from "../../_chunks/common-process-data.mjs";
|
|
3
4
|
import { serve } from "srvx";
|
|
4
5
|
import { plugin } from "crossws/server";
|
|
5
6
|
process.on("disconnect", () => process.exit(0));
|
|
6
7
|
const data = await receiveProcessData();
|
|
7
8
|
const sendMessage = (message) => process.send(message);
|
|
8
|
-
let
|
|
9
|
+
let unregisterHooks;
|
|
9
10
|
let entry;
|
|
10
11
|
let server;
|
|
11
12
|
try {
|
|
12
|
-
|
|
13
|
+
unregisterHooks = await registerWorkerHooks(data);
|
|
13
14
|
entry = await resolveEntry(data.entry, isVirtualEntry(data.entry));
|
|
14
15
|
server = serve({
|
|
15
16
|
...toServerOptions(entry),
|
|
@@ -38,7 +39,7 @@ process.send({ address: parseServerAddress(server) });
|
|
|
38
39
|
process.on("message", async (message) => {
|
|
39
40
|
if (message?.event === "shutdown") {
|
|
40
41
|
Promise.resolve(entry.ipc?.onClose?.()).then(() => server.close()).then(() => {
|
|
41
|
-
|
|
42
|
+
unregisterHooks();
|
|
42
43
|
process.send({ event: "exit" });
|
|
43
44
|
});
|
|
44
45
|
return;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { handleUpdateVirtualModules } from "../../_chunks/plugin-hooks.mjs";
|
|
2
|
+
import { formatInitError, isVirtualEntry, parseServerAddress, registerWorkerHooks, reloadEntryModule, resolveEntry, toServerOptions } from "../../_chunks/common-worker-utils.mjs";
|
|
2
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
4
|
import { serve } from "srvx";
|
|
4
5
|
import { plugin } from "crossws/server";
|
|
5
6
|
const data = workerData || {};
|
|
6
7
|
const sendMessage = (message) => parentPort?.postMessage(message);
|
|
7
|
-
let
|
|
8
|
+
let unregisterHooks;
|
|
8
9
|
let entry;
|
|
9
10
|
let server;
|
|
10
11
|
try {
|
|
11
|
-
|
|
12
|
+
unregisterHooks = await registerWorkerHooks(data);
|
|
12
13
|
entry = await resolveEntry(data.entry, isVirtualEntry(data.entry));
|
|
13
14
|
server = serve({
|
|
14
15
|
...toServerOptions(entry),
|
|
@@ -37,7 +38,7 @@ parentPort?.postMessage({ address: parseServerAddress(server) });
|
|
|
37
38
|
parentPort?.on("message", async (message) => {
|
|
38
39
|
if (message?.event === "shutdown") {
|
|
39
40
|
Promise.resolve(entry.ipc?.onClose?.()).then(() => server.close()).then(() => {
|
|
40
|
-
|
|
41
|
+
unregisterHooks();
|
|
41
42
|
parentPort?.postMessage({ event: "exit" });
|
|
42
43
|
});
|
|
43
44
|
return;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { VirtualModuleUpdates, WorkerHooks } from "../../_chunks/types.mjs";
|
|
2
|
-
import { BaseEnvRunner, EnvRunnerData } from "../../_chunks/common-base-runner.mjs";
|
|
2
|
+
import { BaseEnvRunner, EnvRunnerData, EnvRunnerPluginOption } from "../../_chunks/common-base-runner.mjs";
|
|
3
3
|
export declare class SelfEnvRunner extends BaseEnvRunner {
|
|
4
4
|
#private;
|
|
5
5
|
constructor(opts: {
|
|
6
6
|
name: string;
|
|
7
7
|
hooks?: WorkerHooks;
|
|
8
8
|
data?: EnvRunnerData;
|
|
9
|
+
/** Not supported: the runner closes with an error. */
|
|
10
|
+
plugins?: EnvRunnerPluginOption[];
|
|
9
11
|
});
|
|
10
12
|
fetch(input: string | URL | Request, init?: RequestInit): Promise<Response>;
|
|
11
13
|
upgrade(context: {
|
|
@@ -86,6 +86,10 @@ var SelfEnvRunner = class extends BaseEnvRunner {
|
|
|
86
86
|
this.close(/* @__PURE__ */ new Error("Cannot use data.virtual: the self runner does not support virtual modules"));
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
+
if (this._plugins) {
|
|
90
|
+
this.close(/* @__PURE__ */ new Error("Cannot use plugins: the self runner does not support them"));
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
89
93
|
this.#active = true;
|
|
90
94
|
resolveEntry(entryPath).then(async (entry) => {
|
|
91
95
|
if (this.closed) return;
|
package/package.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "env-runner",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Generic environment runner for JavaScript runtimes.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"repository":
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "unjs/env-runner"
|
|
9
|
-
},
|
|
6
|
+
"repository": "unjs/env-runner",
|
|
10
7
|
"bin": {
|
|
11
8
|
"env-runner": "./dist/cli.mjs"
|
|
12
9
|
},
|
|
@@ -34,6 +31,17 @@
|
|
|
34
31
|
"./runners/netlify/worker": "./dist/runners/netlify/worker.mjs",
|
|
35
32
|
"./vite": "./dist/vite.mjs"
|
|
36
33
|
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "obuild",
|
|
36
|
+
"dev": "vitest dev",
|
|
37
|
+
"fmt": "automd && oxlint . --fix && oxfmt .",
|
|
38
|
+
"lint": "oxlint . && oxfmt --check .",
|
|
39
|
+
"prepack": "pnpm build",
|
|
40
|
+
"env-runner": "node ./src/cli.ts",
|
|
41
|
+
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
|
42
|
+
"test": "pnpm lint && pnpm typecheck && vitest run --coverage",
|
|
43
|
+
"typecheck": "tsc --noEmit --skipLibCheck"
|
|
44
|
+
},
|
|
37
45
|
"dependencies": {
|
|
38
46
|
"crossws": "^0.4.12",
|
|
39
47
|
"exsolve": "^1.1.1",
|
|
@@ -43,7 +51,7 @@
|
|
|
43
51
|
"devDependencies": {
|
|
44
52
|
"@netlify/runtime": "^5.0.5",
|
|
45
53
|
"@types/node": "^26.6.2",
|
|
46
|
-
"@vercel/queue": "^0.
|
|
54
|
+
"@vercel/queue": "^0.7.0",
|
|
47
55
|
"@vitest/coverage-v8": "^5.0.1",
|
|
48
56
|
"automd": "^0.4.3",
|
|
49
57
|
"changelogen": "^0.6.2",
|
|
@@ -52,20 +60,12 @@
|
|
|
52
60
|
"es-module-lexer": "^3.0.2",
|
|
53
61
|
"miniflare": "^5.20260921.1-alpha",
|
|
54
62
|
"obuild": "^0.4.40",
|
|
63
|
+
"oxc-transform": "^0.151.0",
|
|
55
64
|
"oxfmt": ">=0.70.0",
|
|
56
65
|
"oxlint": "^1.85.0",
|
|
57
66
|
"typescript": "^7.0.2",
|
|
58
67
|
"vitest": "^5.0.1",
|
|
59
|
-
"wrangler": "^4.
|
|
68
|
+
"wrangler": "^4.140.0"
|
|
60
69
|
},
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
"dev": "vitest dev",
|
|
64
|
-
"fmt": "automd && oxlint . --fix && oxfmt .",
|
|
65
|
-
"lint": "oxlint . && oxfmt --check .",
|
|
66
|
-
"env-runner": "node ./src/cli.ts",
|
|
67
|
-
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
|
68
|
-
"test": "pnpm lint && pnpm typecheck && vitest run --coverage",
|
|
69
|
-
"typecheck": "tsc --noEmit --skipLibCheck"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
70
|
+
"packageManager": "pnpm@12.6.0"
|
|
71
|
+
}
|