@@ -8,6 +8,7 @@ import { INpmConfigService, INodePackageManager } from "../declarations";
8
8
import { IProxyService , IFileSystem } from "../common/declarations" ;
9
9
import { IInjector } from "../common/definitions/yok" ;
10
10
import { injector } from "../common/yok" ;
11
+ import { Arborist } from "@npmcli/arborist" ;
11
12
12
13
export class PacoteService implements IPacoteService {
13
14
constructor (
@@ -32,7 +33,8 @@ export class PacoteService implements IPacoteService {
32
33
`Calling pacoteService.manifest for packageName: '${ packageName } ' and options: ` ,
33
34
options
34
35
) ;
35
- const manifestOptions : IPacoteBaseOptions = await this . getPacoteBaseOptions ( ) ;
36
+ const manifestOptions : IPacoteBaseOptions =
37
+ await this . getPacoteBaseOptions ( ) ;
36
38
37
39
if ( options ) {
38
40
_ . extend ( manifestOptions , options ) ;
@@ -117,7 +119,7 @@ export class PacoteService implements IPacoteService {
117
119
118
120
// Add NPM Configuration to our Manifest options
119
121
const npmConfig = this . $npmConfigService . getConfig ( ) ;
120
- const pacoteOptions = _ . extend ( npmConfig , { cache : cachePath } ) ;
122
+ const pacoteOptions = _ . extend ( npmConfig , { cache : cachePath , Arborist } ) ;
121
123
const proxySettings = await this . $proxyService . getCache ( ) ;
122
124
if ( proxySettings ) {
123
125
_ . extend ( pacoteOptions , proxySettings ) ;
0 commit comments