-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtsdown.config.ts
More file actions
25 lines (24 loc) · 881 Bytes
/
tsdown.config.ts
File metadata and controls
25 lines (24 loc) · 881 Bytes
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
import { defineConfig } from "tsdown";
export default defineConfig({
entry: ["src/index.ts", "src/next.ts"],
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
clean: true,
exports: false, // need to manage exports so we can export the hook.mjs file
target: "es2020",
platform: "node",
noExternal: [
// Bundle all OpenTelemetry packages to ensure patched @opentelemetry/api isolation
"@opentelemetry/api",
"@opentelemetry/resources",
"@opentelemetry/sdk-trace-node",
"@opentelemetry/sdk-trace-base",
"@opentelemetry/semantic-conventions",
"@opentelemetry/core",
"@protobuf-ts/twirp-transport",
"@use-tusk/drift-schemas",
],
// Keep these external - they need to work with Node's module system for dynamic instrumentation
external: ["import-in-the-middle", "require-in-the-middle", "jsonpath", "semver", "js-yaml"],
});