From 64fc1b21d5708aa39325939c6f2daa39b3c413d9 Mon Sep 17 00:00:00 2001
From: Igor Randjelovic <rigor789@gmail.com>
Date: Tue, 8 Sep 2020 13:14:42 +0200
Subject: [PATCH 1/2] feat: pass current CLI public lib path to webpack env

---
 lib/services/webpack/webpack-compiler-service.ts | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts
index 91d05633f6..3889ca6b75 100644
--- a/lib/services/webpack/webpack-compiler-service.ts
+++ b/lib/services/webpack/webpack-compiler-service.ts
@@ -318,7 +318,15 @@ export class WebpackCompilerService
 		Object.assign(
 			envData,
 			appPath && { appPath },
-			appResourcesPath && { appResourcesPath }
+			appResourcesPath && { appResourcesPath },
+			{
+				nativescriptLibPath: path.resolve(
+					__dirname,
+					"..",
+					"..",
+					"nativescript-cli-lib.js"
+				),
+			}
 		);
 
 		envData.verbose = envData.verbose || this.$logger.isVerbose();

From 66f01f5d5ccc036d070c7e00e834d6ed58f9fb1b Mon Sep 17 00:00:00 2001
From: Igor Randjelovic <rigor789@gmail.com>
Date: Tue, 8 Sep 2020 13:26:29 +0200
Subject: [PATCH 2/2] feat: export projectConfigService methods

---
 lib/services/project-config-service.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/services/project-config-service.ts b/lib/services/project-config-service.ts
index fb957e1054..bfd0856e83 100644
--- a/lib/services/project-config-service.ts
+++ b/lib/services/project-config-service.ts
@@ -27,7 +27,7 @@ import {
 	format as prettierFormat,
 	resolveConfig as resolvePrettierConfig,
 } from "prettier";
-import { cache } from "../common/decorators";
+import { cache, exported } from "../common/decorators";
 import { IOptions } from "../declarations";
 import semver = require("semver/preload");
 
@@ -123,6 +123,7 @@ export default {
 		};
 	}
 
+	@exported("projectConfigService")
 	public readConfig(projectDir?: string): INsConfig {
 		const info = this.detectProjectConfigs(projectDir);
 
@@ -159,10 +160,12 @@ export default {
 		return config;
 	}
 
+	@exported("projectConfigService")
 	public getValue(key: string): any {
 		return _.get(this.readConfig(), key);
 	}
 
+	@exported("projectConfigService")
 	public async setValue(
 		key: string,
 		value: SupportedConfigValues