We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c52d85 commit 02fcbb6Copy full SHA for 02fcbb6
lib/npm.js
@@ -1,3 +1,4 @@
1
+const Arborist = require('@npmcli/arborist')
2
const EventEmitter = require('events')
3
const { resolve, dirname, join } = require('path')
4
const Config = require('@npmcli/config')
@@ -310,6 +311,9 @@ class Npm extends EventEmitter {
310
311
312
get flatOptions () {
313
const { flat } = this.config
314
+ // the Arborist constructor is used almost everywhere we call pacote, it's easiest
315
+ // to attach it to flatOptions so it goes everywhere without having to touch every call
316
+ flat.Arborist = Arborist
317
if (this.command) {
318
flat.npmCommand = this.command
319
}
0 commit comments