Commit 848047d
committed
Add src/index.ts so tsc produces dist/index.js
ClawHub upload rejected the package because package.json#main
('./dist/index.js') pointed at a file that didn't exist — tsc with
rootDir: 'src' was compiling src/plugin/*, src/api/*, src/engine/* but
not the root index.ts (which lives outside rootDir).
src/index.ts mirrors the root index.ts (re-exports the plugin default
plus the public API), so tsc emits dist/index.js. The root index.ts
stays for TS-direct loading via openclaw.extensions; the compiled
dist/index.js satisfies ClawHub and any host without TS support.1 parent e5a60c9 commit 848047d
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments