Skip to content

Commit 2d54846

Browse files
authored
Bundle plugin output (#14)
* Bundle plugin output * Use lightweight tracer provider
1 parent 4101fc0 commit 2d54846

6 files changed

Lines changed: 451 additions & 539 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Check formatting:
2828
pnpm run format:check
2929
```
3030

31-
The TypeScript compiler writes build output to `dist/`. Do not edit generated files in `dist/` by hand.
31+
tsdown bundles the plugin and its runtime dependencies into `dist/index.js`. Do not edit generated files in `dist/` by hand.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,23 @@
3737
"access": "public"
3838
},
3939
"scripts": {
40-
"build": "tsc",
40+
"build": "tsdown && tsc --emitDeclarationOnly",
4141
"format": "prettier --write .",
4242
"format:check": "prettier --check .",
4343
"test:integration": "pnpm run build && tsc --noEmit -p tsconfig.test.json && vitest run test/integration"
4444
},
4545
"dependencies": {
46-
"@langfuse/otel": "^5.4.1",
4746
"@opencode-ai/plugin": "^1.15.13",
48-
"@opentelemetry/api": "^1.9.1",
49-
"@opentelemetry/sdk-node": "^0.218.0",
50-
"@opentelemetry/sdk-trace-base": "^2.7.1",
51-
"effect": "^3.21.2"
47+
"@opentelemetry/api": "^1.9.1"
5248
},
5349
"devDependencies": {
50+
"@langfuse/otel": "^5.4.1",
51+
"@opentelemetry/sdk-trace-base": "^2.7.1",
52+
"@opentelemetry/sdk-trace-node": "^2.7.1",
5453
"@types/node": "^26.1.2",
54+
"effect": "^3.21.2",
5555
"prettier": "^3.8.3",
56+
"tsdown": "0.22.14",
5657
"typescript": "^6.0.3",
5758
"vitest": "4.1.6"
5859
}

0 commit comments

Comments
 (0)