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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user