-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.ts
More file actions
17 lines (13 loc) · 671 Bytes
/
index.ts
File metadata and controls
17 lines (13 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { runDependencyAnalysis as runOldAnalysis } from './src/analyze/dependencies_old.js';
import { runDependencyAnalysis as runNewAnalysis } from './src/analyze/dependencies_one_more_time.js';
import { LocalFileSystem } from './src/local-file-system.js';
async function run() {
const fileSystem = new LocalFileSystem(process.cwd());
// console.log('Running old algorithm...');
// const oldResult = await runOldAnalysis(fileSystem);
// console.log('Old result:', oldResult.stats);
console.log('\nRunning new algorithm...');
const newResult = await runNewAnalysis(fileSystem);
console.log('New result:', newResult.stats);
}
run().catch(console.error);