File size: 552 Bytes
cd8bd0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineConfig } from "tsup";

export default defineConfig({
  entry: ["src/index.ts"],
  format: ["esm"],
  dts: true,
  clean: true,
  sourcemap: false,
  splitting: false,
  treeshake: false,
  target: "node22",
  outDir: "dist",
  minify: false,
  cjsInterop: false,
  // Bundle runtime deps so the .tgz / npm install is self-contained.
  // `zod` is required at runtime by the options schema and would otherwise
  // need a peer install when the plugin is loaded directly from a file path
  // in opencode.jsonc.
  noExternal: ["zod"],
});