Files
typeflow/bin/typeflow
7000pctAUTO 3bb39032df
Some checks failed
CI / test (push) Has been cancelled
Add CLI entry point and main index
2026-01-30 00:56:11 +00:00

14 lines
305 B
JavaScript

#!/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);
}