File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import {
27
27
format as prettierFormat ,
28
28
resolveConfig as resolvePrettierConfig ,
29
29
} from "prettier" ;
30
- import { cache } from "../common/decorators" ;
30
+ import { cache , exported } from "../common/decorators" ;
31
31
import { IOptions } from "../declarations" ;
32
32
import semver = require( "semver/preload" ) ;
33
33
import { ICleanupService } from "../definitions/cleanup-service" ;
@@ -125,6 +125,7 @@ export default {
125
125
} ;
126
126
}
127
127
128
+ @exported ( "projectConfigService" )
128
129
public readConfig ( projectDir ?: string ) : INsConfig {
129
130
const info = this . detectProjectConfigs ( projectDir ) ;
130
131
@@ -161,10 +162,12 @@ export default {
161
162
return config ;
162
163
}
163
164
165
+ @exported ( "projectConfigService" )
164
166
public getValue ( key : string ) : any {
165
167
return _ . get ( this . readConfig ( ) , key ) ;
166
168
}
167
169
170
+ @exported ( "projectConfigService" )
168
171
public async setValue (
169
172
key : string ,
170
173
value : SupportedConfigValues
Original file line number Diff line number Diff line change @@ -318,7 +318,15 @@ export class WebpackCompilerService
318
318
Object . assign (
319
319
envData ,
320
320
appPath && { appPath } ,
321
- appResourcesPath && { appResourcesPath }
321
+ appResourcesPath && { appResourcesPath } ,
322
+ {
323
+ nativescriptLibPath : path . resolve (
324
+ __dirname ,
325
+ ".." ,
326
+ ".." ,
327
+ "nativescript-cli-lib.js"
328
+ ) ,
329
+ }
322
330
) ;
323
331
324
332
envData . verbose = envData . verbose || this . $logger . isVerbose ( ) ;
You can’t perform that action at this time.
0 commit comments