mirror of
https://github.com/TabbyML/tabby
synced 2024-11-23 01:56:18 +00:00
31 lines
682 B
TypeScript
Vendored
31 lines
682 B
TypeScript
Vendored
import { defineConfig } from "tsup";
|
|
import { copy } from "esbuild-plugin-copy";
|
|
import { dependencies } from "./package.json";
|
|
|
|
export default () => [
|
|
defineConfig({
|
|
name: "node",
|
|
entry: ["src/extension.ts"],
|
|
outDir: "dist",
|
|
platform: "node",
|
|
target: "node18",
|
|
external: ["vscode"],
|
|
noExternal: Object.keys(dependencies),
|
|
clean: true,
|
|
esbuildPlugins: [
|
|
copy({
|
|
assets: [
|
|
{
|
|
from: "../tabby-agent/dist/cli.js",
|
|
to: "./server/tabby-agent.js",
|
|
},
|
|
{
|
|
from: "../tabby-agent/dist/wasm/*",
|
|
to: "./server/wasm",
|
|
},
|
|
],
|
|
}),
|
|
],
|
|
}),
|
|
];
|