* Find the CLI script (JS) * @returns {string|null} Path to the CLI script if found, null otherwise
()
| 101 | * @returns {string|null} Path to the CLI script if found, null otherwise |
| 102 | */ |
| 103 | function findCliScript() { |
| 104 | // Possible locations for the CLI script |
| 105 | const possiblePaths = [ |
| 106 | // Local build directory |
| 107 | path.join(__dirname, 'build', 'cli', 'cli.js'), |
| 108 | // Global installation |
| 109 | path.join(__dirname, 'build', 'cli', 'cli.js') |
| 110 | ]; |
| 111 | |
| 112 | for (const p of possiblePaths) { |
| 113 | if (fs.existsSync(p)) { |
| 114 | return p; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | return null; |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Run the CLI using Deno directly with the TypeScript source |
no outgoing calls
no test coverage detected