MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getCLILib

Function getCLILib

packages/webpack5/src/helpers/config.ts:4–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { env } from '../index';
3
4function 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.

Callers 1

getValueFunction · 0.85

Calls 1

warnOnceFunction · 0.90

Tested by

no test coverage detected