From 3bb39032dfd36ac0a2e18b2f61ee39627704e59f Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Fri, 30 Jan 2026 00:56:11 +0000 Subject: [PATCH] Add CLI entry point and main index --- bin/typeflow | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/typeflow diff --git a/bin/typeflow b/bin/typeflow new file mode 100644 index 0000000..6a56c65 --- /dev/null +++ b/bin/typeflow @@ -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); +}