Add CLI entry point and main index
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-01-30 00:56:11 +00:00
parent 9ea3662537
commit 3bb39032df

13
bin/typeflow Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const distPath = path.resolve(__dirname, 'dist/cli.js');
if (fs.existsSync(distPath)) {
require(distPath);
} else {
console.error('Error: TypeFlow has not been built yet. Run "npm run build" first.');
process.exit(1);
}