@@ -31,7 +31,7 @@ const Node = require('../node.js')
31
31
const Link = require ( '../link.js' )
32
32
const addRmPkgDeps = require ( '../add-rm-pkg-deps.js' )
33
33
const optionalSet = require ( '../optional-set.js' )
34
- const { checkEngine, checkPlatform} = require ( 'npm-install-checks' )
34
+ const { checkEngine, checkPlatform } = require ( 'npm-install-checks' )
35
35
36
36
const relpath = require ( '../relpath.js' )
37
37
@@ -311,7 +311,7 @@ module.exports = cls => class IdealTreeBuilder extends cls {
311
311
? Shrinkwrap . reset ( {
312
312
path : this . path ,
313
313
lockfileVersion : this . options . lockfileVersion ,
314
- } ) . then ( meta => Object . assign ( root , { meta} ) )
314
+ } ) . then ( meta => Object . assign ( root , { meta } ) )
315
315
: this . loadVirtual ( { root } ) )
316
316
317
317
// if we don't have a lockfile to go from, then start with the
@@ -492,7 +492,7 @@ module.exports = cls => class IdealTreeBuilder extends cls {
492
492
493
493
// This returns a promise because we might not have the name yet,
494
494
// and need to call pacote.manifest to find the name.
495
- [ _add ] ( tree , { add, saveType = null , saveBundle = false } ) {
495
+ [ _add ] ( tree , { add, saveType = null , saveBundle = false } ) {
496
496
// get the name for each of the specs in the list.
497
497
// ie, doing `foo@bar` we just return foo
498
498
// but if it's a url or git, we don't know the name until we
@@ -936,7 +936,7 @@ This is a one-time fix-up, please be patient...
936
936
}
937
937
} )
938
938
939
- tasks . push ( { edge, dep} )
939
+ tasks . push ( { edge, dep } )
940
940
}
941
941
942
942
const placeDeps = tasks
@@ -1271,7 +1271,7 @@ This is a one-time fix-up, please be patient...
1271
1271
// we typically only install non-optional peers, but we have to
1272
1272
// factor them into the peerSet so that we can avoid conflicts
1273
1273
. filter ( e => e . peer && ! ( e . valid && e . to ) )
1274
- . sort ( ( { name : a } , { name : b } ) => localeCompare ( a , b ) )
1274
+ . sort ( ( { name : a } , { name : b } ) => localeCompare ( a , b ) )
1275
1275
1276
1276
for ( const edge of peerEdges ) {
1277
1277
// already placed this one, and we're happy with it.
@@ -1280,7 +1280,7 @@ This is a one-time fix-up, please be patient...
1280
1280
}
1281
1281
1282
1282
const parentEdge = node . parent . edgesOut . get ( edge . name )
1283
- const { isProjectRoot, isWorkspace} = node . parent . sourceReference
1283
+ const { isProjectRoot, isWorkspace } = node . parent . sourceReference
1284
1284
const isMine = isProjectRoot || isWorkspace
1285
1285
const conflictOK = this [ _force ] || ! isMine && ! this [ _strictPeerDeps ]
1286
1286
0 commit comments