const tsFile = tsProject.addExistingSourceFile(mainFilePath); const bootstrapFunction = tsFile.getFunction('bootstrap'); const listenStatement = bootstrapFunction.getStatement(node => node.getText().includes('listen'), ); const setPrefixStatement = bootstrapFunction.getStatement(node => node.getText().includes('setGlobalPrefix'), );
const tsFile = tsProject.addExistingSourceFile(mainFilePath); const bootstrapFunction = tsFile.getFunction('bootstrap'); const listenStatement = bootstrapFunction.getStatement(node => node.getText().includes('listen'), ); const setPrefixStatement = bootstrapFunction.getStatement(node => node.getText().includes('setGlobalPrefix'), );