Files
chat/client/web/scripts/generate-plugin-declaration.tsmorph.ts

16 lines
412 B
TypeScript
Raw Permalink Normal View History

2026-04-25 16:36:34 +08:00
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();