14 lines
451 B
JavaScript
Executable File
14 lines
451 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
const fs = require( 'node:fs' );
|
|
const path = require( 'node:path' );
|
|
|
|
// We need to make sure that the tool has been built before we can use it.
|
|
const runFile = path.join( __dirname, '..', 'dist', 'index.js' );
|
|
if ( ! fs.existsSync( runFile ) ) {
|
|
console.error( 'The "monorepo-utils" tool has not been built.' );
|
|
process.exit( 1 );
|
|
}
|
|
|
|
// Execute the tool now that we've confirmed it exists.
|
|
require( '../dist/index.js' );
|