-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_build.js
More file actions
53 lines (42 loc) · 1.22 KB
/
quick_build.js
File metadata and controls
53 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env node
/**
* Script para compilar y verificar que no hay errores de TypeScript
*/
import { spawn } from 'child_process';
function buildProject() {
console.log('🔨 Building Anytype MCP Server...\n');
const tsc = spawn('npx', ['tsc'], {
cwd: 'D:/repos/mcps/my-mcp-anytype',
stdio: ['inherit', 'pipe', 'pipe'],
shell: true
});
let stdout = '';
let stderr = '';
tsc.stdout.on('data', (data) => {
stdout += data;
process.stdout.write(data);
});
tsc.stderr.on('data', (data) => {
stderr += data;
process.stderr.write(data);
});
tsc.on('close', (code) => {
console.log('\n' + '='.repeat(50));
if (code === 0) {
console.log('✅ Build successful!');
console.log('\n🎉 TypeScript compilation completed without errors.');
console.log('\nYou can now run:');
console.log(' node test_simple.js # Test the fixes');
console.log(' node dist/index.js # Start the MCP server');
} else {
console.log('❌ Build failed!');
console.log(`\nExit code: ${code}`);
if (stderr) {
console.log('\nErrors found:');
console.log(stderr);
}
}
process.exit(code);
});
}
buildProject();