File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ export class PacoteService implements IPacoteService {
1111 private $injector : IInjector ,
1212 private $logger : ILogger ,
1313 private $proxyService : IProxyService ) {
14- npmconfig . read ( ) . forEach ( ( value : any , key : string ) => {
15- // replace env ${VARS} in strings with the process.env value
16- this . npmConfig [ key ] = typeof value !== 'string' ? value : value . replace ( / \$ { ( [ ^ } ] + ) } / , ( _ , envVar ) => process . env [ envVar ] ) ;
17- } ) ;
14+ npmconfig . read ( ) . forEach ( ( value : any , key : string ) => {
15+ // replace env ${VARS} in strings with the process.env value
16+ this . npmConfig [ key ] = typeof value !== 'string' ? value : value . replace ( / \$ { ( [ ^ } ] + ) } / , ( _ , envVar ) => process . env [ envVar ] ) ;
17+ } ) ;
1818 }
1919
2020 @cache ( )
You can’t perform that action at this time.
0 commit comments