chore: reorg files
This commit is contained in:
+8
-5
@@ -7,24 +7,27 @@ export async function build() {
|
||||
const results = await Promise.all([
|
||||
Bun.build({
|
||||
entrypoints: [
|
||||
"src/agents.ts",
|
||||
"src/multi-work.ts",
|
||||
"src/quota-plugin.ts",
|
||||
"src/quota-rpc.ts",
|
||||
"src/agents/agents.ts",
|
||||
"src/multi-work/multi-work.ts",
|
||||
"src/quota/quota-plugin.ts",
|
||||
"src/quota/quota-rpc.ts",
|
||||
],
|
||||
outdir: "dist",
|
||||
naming: "[name].[ext]",
|
||||
target: "bun",
|
||||
format: "esm",
|
||||
}),
|
||||
Bun.build({
|
||||
entrypoints: ["scripts/install.ts"],
|
||||
outdir: "dist",
|
||||
naming: "[name].[ext]",
|
||||
target: "bun",
|
||||
format: "esm",
|
||||
}),
|
||||
Bun.build({
|
||||
entrypoints: ["src/tui.tsx"],
|
||||
entrypoints: ["src/quota/tui.tsx"],
|
||||
outdir: "dist",
|
||||
naming: "[name].[ext]",
|
||||
target: "bun",
|
||||
format: "esm",
|
||||
external: ["@opencode/plugin/tui", "@opentui/solid", "solid-js"],
|
||||
|
||||
@@ -5,7 +5,7 @@ import { tmpdir } from "node:os";
|
||||
import { join, resolve } from "node:path";
|
||||
import { createServer } from "node:net";
|
||||
import { OpenCode } from "@opencode/client";
|
||||
import { command } from "../src/herdr.js";
|
||||
import { command } from "../src/multi-work/herdr.js";
|
||||
import { z } from "zod";
|
||||
|
||||
const binary = process.env.OPENCODE_2022;
|
||||
@@ -358,7 +358,7 @@ try {
|
||||
server.kill();
|
||||
await server.exited;
|
||||
const quotaBuild = await Bun.build({
|
||||
entrypoints: [resolve("src/quota-plugin.ts")],
|
||||
entrypoints: [resolve("src/quota/quota-plugin.ts")],
|
||||
outdir: join(temp, "plugin", "quota"),
|
||||
naming: "index.js",
|
||||
target: "bun",
|
||||
|
||||
Reference in New Issue
Block a user