1
1
const archy = require ( 'archy' )
2
- const Arborist = require ( '@npmcli/arborist' )
3
2
const pacote = require ( 'pacote' )
4
3
const semver = require ( 'semver' )
5
4
const npa = require ( 'npm-package-arg' )
6
5
const { depth } = require ( 'treeverse' )
7
6
const { readTree : getFundingInfo , normalizeFunding, isValidFunding } = require ( 'libnpmfund' )
8
7
9
- const completion = require ( '../utils/completion/installed-deep.js' )
10
8
const openUrl = require ( '../utils/open-url.js' )
11
9
const ArboristWorkspaceCmd = require ( '../arborist-cmd.js' )
12
10
@@ -39,6 +37,7 @@ class Fund extends ArboristWorkspaceCmd {
39
37
// TODO
40
38
/* istanbul ignore next */
41
39
async completion ( opts ) {
40
+ const completion = require ( '../utils/completion/installed-deep.js' )
42
41
return completion ( this . npm , opts )
43
42
}
44
43
@@ -64,6 +63,7 @@ class Fund extends ArboristWorkspaceCmd {
64
63
}
65
64
66
65
const where = this . npm . prefix
66
+ const Arborist = require ( '@npmcli/arborist' )
67
67
const arb = new Arborist ( { ...this . npm . flatOptions , path : where } )
68
68
const tree = await arb . loadActual ( )
69
69
@@ -80,6 +80,7 @@ class Fund extends ArboristWorkspaceCmd {
80
80
// TODO: add !workspacesEnabled option handling to libnpmfund
81
81
const fundingInfo = getFundingInfo ( tree , {
82
82
...this . flatOptions ,
83
+ Arborist,
83
84
workspaces : this . workspaceNames ,
84
85
} )
85
86
0 commit comments