plugin(telemetry-watcher): emit dist/ via tsc, mirror paperclip layout

The runtime plugin packages (paperclip, hermes, openclaw) all build to
dist/ and have package.json exports import pointing at dist/index.js.
Fusion's plugin loader uses Node ESM dynamic import on the absolute
installation path, which fails on TypeScript source because there's
no TS loader at runtime. Drop noEmit, exclude tests from compilation,
emit dist + sourcemaps + d.ts so the loader can resolve dist/index.js
the same way it resolves paperclip's.

Plugin should be re-registered with path
/app/plugins/fusion-plugin-telemetry-watcher/dist/index.js after the
fusion redeploy lands the new dist artifact.
This commit is contained in:
Semih
2026-05-10 09:19:26 +00:00
parent 52ea986460
commit 278d96df55
2 changed files with 7 additions and 4 deletions

View File

@@ -9,12 +9,12 @@
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
"import": "./dist/index.js"
}
},
"private": true,
"scripts": {
"build": "tsc --noEmit",
"build": "tsc",
"test": "vitest run --silent=passed-only --reporter=dot"
},
"dependencies": {