()
| 2 | import { env } from '../index'; |
| 3 | |
| 4 | function getCLILib() { |
| 5 | if (!env.nativescriptLibPath) { |
| 6 | if (typeof env.nativescriptLibPath !== 'boolean') { |
| 7 | warnOnce( |
| 8 | 'getCLILib', |
| 9 | ` |
| 10 | Cannot find NativeScript CLI path. Make sure --env.nativescriptLibPath is passed |
| 11 | ` |
| 12 | ); |
| 13 | } |
| 14 | return false; |
| 15 | } |
| 16 | |
| 17 | if (typeof env.nativescriptLibPath === 'boolean') { |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | return require(env.nativescriptLibPath as string); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Utility to get a value from the nativescript.config.ts file. |