-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
31 lines (29 loc) · 1 KB
/
Copy pathtsdown.config.ts
File metadata and controls
31 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 Alexander Corrado
import { defineConfig } from "tsdown";
export default defineConfig({
entry: ["src/cli/index.ts", "src/index.ts", "src/checks/index.ts"],
format: "esm",
outDir: "dist",
dts: true,
deps: {
neverBundle: [
"typescript",
"ai",
"@google/genai",
"@typesafe-ai/sdk",
"chokidar",
"minimatch",
// Native (napi) module: its binding loader `require`s a per-platform
// `@tursodatabase/sync-<platform>` package at module scope, which only
// resolves from an installed `node_modules` tree — inlining it into the
// bundle would make `dist/cli/index.js` throw on import.
"@tursodatabase/sync",
"drizzle-orm",
],
},
// Emit `.js`/`.d.ts` rather than tsdown's default `.mjs`/`.d.mts`.
// The package is `"type": "module"`, so `.js` is already ESM, which keeps the
// filenames referenced by `exports` and `bin/evalution.js` stable.
fixedExtension: false,
});