Files
chat/client/web/scripts/generate-plugin-declaration.tsmorph.ts
2026-04-25 16:36:34 +08:00

16 lines
412 B
TypeScript

import { parseDeclarationEntry } from 'tailchat-plugin-declaration-generator';
import path from 'path';
// WIP
function generateDeclarationFile() {
const { exportDefs } = parseDeclarationEntry({
entryPath: path.resolve(__dirname, './test-export.ts'),
project: {
tsConfigFilePath: path.resolve(__dirname, '../tsconfig.json'),
},
});
console.log(exportDefs);
}
generateDeclarationFile();