* Check if we're running from a global installation (node_modules) * @returns {boolean} True if running from node_modules, false otherwise
()
| 67 | * @returns {boolean} True if running from node_modules, false otherwise |
| 68 | */ |
| 69 | function isRunningFromNodeModules() { |
| 70 | // More robust check for node_modules |
| 71 | return __dirname.includes('node_modules') || |
| 72 | __dirname.includes('/usr/local/') || |
| 73 | __dirname.includes('/usr/lib/') || |
| 74 | __dirname.includes('/usr/share/'); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Find the CLI TypeScript source file |
no outgoing calls
no test coverage detected