优化
This commit is contained in:
15
client/web/scripts/generate-plugin-declaration.tsmorph.ts
Normal file
15
client/web/scripts/generate-plugin-declaration.tsmorph.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user