plugin-sdk: add channel subpaths and migrate bundled plugins

This commit is contained in:
Gustavo Madeira Santana
2026-03-03 22:07:03 -05:00
parent 1c200ca7ae
commit 1278ee9248
75 changed files with 808 additions and 174 deletions

View File

@@ -6,7 +6,18 @@ import path from "node:path";
//
// Our package export map points subpath `types` at `dist/plugin-sdk/<entry>.d.ts`, so we
// generate stable entry d.ts files that re-export the real declarations.
const entrypoints = ["index", "core", "telegram", "account-id"] as const;
const entrypoints = [
"index",
"core",
"telegram",
"discord",
"slack",
"signal",
"imessage",
"whatsapp",
"line",
"account-id",
] as const;
for (const entry of entrypoints) {
const out = path.join(process.cwd(), `dist/plugin-sdk/${entry}.d.ts`);
fs.mkdirSync(path.dirname(out), { recursive: true });