Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/services/pacote-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { INpmConfigService, INodePackageManager } from "../declarations";
import { IProxyService, IFileSystem } from "../common/declarations";
import { IInjector } from "../common/definitions/yok";
import { injector } from "../common/yok";
import { Arborist } from "@npmcli/arborist";

export class PacoteService implements IPacoteService {
constructor(
Expand All @@ -32,7 +33,8 @@ export class PacoteService implements IPacoteService {
`Calling pacoteService.manifest for packageName: '${packageName}' and options: `,
options
);
const manifestOptions: IPacoteBaseOptions = await this.getPacoteBaseOptions();
const manifestOptions: IPacoteBaseOptions =
await this.getPacoteBaseOptions();

if (options) {
_.extend(manifestOptions, options);
Expand Down Expand Up @@ -117,7 +119,7 @@ export class PacoteService implements IPacoteService {

// Add NPM Configuration to our Manifest options
const npmConfig = this.$npmConfigService.getConfig();
const pacoteOptions = _.extend(npmConfig, { cache: cachePath });
const pacoteOptions = _.extend(npmConfig, { cache: cachePath, Arborist });
const proxySettings = await this.$proxyService.getCache();
if (proxySettings) {
_.extend(pacoteOptions, proxySettings);
Expand Down
Loading