This commit is contained in:
13
bin/typeflow
Normal file
13
bin/typeflow
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user