@@ -258,47 +258,44 @@ export default class PackageRequest {
258
258
// resolution to fetch the package so we can peek inside of it for a fbkpm.lock
259
259
// only do this in strict lockfile mode as otherwise we can just use our root lockfile
260
260
let subLockfile = null ;
261
- if ( ! this . resolver . lockfile . strict ) {
262
- // get possible mirror path
263
- let offlineMirrorPath = this . config . getOfflineMirrorPath ( ref . remote . registry , ref . remote . reference ) ;
264
-
265
- // while we're fetching the package we have some idle time to warm the cache with
266
- // registry responses for known dependencies
267
- if ( ! offlineMirrorPath ) {
268
- for ( let name in info . dependencies ) {
269
- this . warmCacheIfRegistry ( `${ name } @${ info . dependencies [ name ] } ` ) ;
270
- }
271
- }
272
261
273
- //
274
- let { package : newInfo , hash, dest } = await this . resolver . fetchingQueue . push (
275
- info . name ,
276
- ( ) => this . resolver . fetcher . fetch ( ref )
277
- ) ;
278
-
279
- // replace resolved remote URL with local path if lockfile is in save mode and we have a path
280
- if ( this . resolver . lockfile . save && offlineMirrorPath ) {
281
- if ( await fs . exists ( offlineMirrorPath ) ) {
282
- remote . resolved = path . relative (
283
- this . config . getOfflineMirrorPath ( ref . remote . registry ) ,
284
- offlineMirrorPath
285
- ) + `#${ ref . remote . hash } ` ;
286
- }
287
- }
288
- remote . hash = hash ;
289
- newInfo . reference = ref ;
290
- newInfo . remote = remote ;
291
- info = newInfo ;
292
-
293
- // find and load in fbkpm.lock from this module if it exists
294
- let lockfileLoc = path . join ( dest , constants . LOCKFILE_FILENAME ) ;
295
- if ( await fs . exists ( lockfileLoc ) ) {
296
- let rawLockfile = await fs . readFile ( lockfileLoc ) ;
297
- let lockfileObj = parseLock ( rawLockfile ) ;
298
- subLockfile = new Lockfile ( lockfileObj , false ) ;
262
+ // get possible mirror path
263
+ let offlineMirrorPath = this . config . getOfflineMirrorPath ( ref . remote . registry , ref . remote . reference ) ;
264
+
265
+ // while we're fetching the package we have some idle time to warm the cache with
266
+ // registry responses for known dependencies
267
+ if ( ! offlineMirrorPath ) {
268
+ for ( let name in info . dependencies ) {
269
+ this . warmCacheIfRegistry ( `${ name } @${ info . dependencies [ name ] } ` ) ;
299
270
}
300
271
}
301
272
273
+ //
274
+ let { package : newInfo , hash, dest } = await this . resolver . fetchingQueue . push (
275
+ info . name ,
276
+ ( ) => this . resolver . fetcher . fetch ( ref )
277
+ ) ;
278
+
279
+ // replace resolved remote URL with local path if lockfile is in save mode and we have a path
280
+ if ( this . resolver . lockfile . save && offlineMirrorPath && await fs . exists ( offlineMirrorPath ) ) {
281
+ remote . resolved = path . relative (
282
+ this . config . getOfflineMirrorPath ( ref . remote . registry ) ,
283
+ offlineMirrorPath
284
+ ) + `#${ ref . remote . hash } ` ;
285
+ }
286
+ remote . hash = hash ;
287
+ newInfo . reference = ref ;
288
+ newInfo . remote = remote ;
289
+ info = newInfo ;
290
+
291
+ // find and load in fbkpm.lock from this module if it exists
292
+ let lockfileLoc = path . join ( dest , constants . LOCKFILE_FILENAME ) ;
293
+ if ( await fs . exists ( lockfileLoc ) ) {
294
+ let rawLockfile = await fs . readFile ( lockfileLoc ) ;
295
+ let lockfileObj = parseLock ( rawLockfile ) ;
296
+ subLockfile = new Lockfile ( lockfileObj , false ) ;
297
+ }
298
+
302
299
// start installation of dependencies
303
300
let promises = [ ] ;
304
301
let deps = [ ] ;
0 commit comments