Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[ctx.importerId]: {
hoistedAliases: ctx.hoistedAliases,
shamefullyFlatten: opts.shamefullyFlatten,
},
},
included: ctx.include,
independentLeaves: opts.independentLeaves,
layoutVersion: LAYOUT_VERSION,
packageManager: `${opts.packageManager.name}@${opts.packageManager.version}`,
pendingBuilds: ctx.pendingBuilds,
registries: ctx.registries,
skipped: Array.from(ctx.skipped).filter((pkgId) => !removedPkgIds.has(pkgId)),
store: ctx.storePath,
})
summaryLogger.debug({ prefix: opts.prefix })
}
included: ctx.include,
independentLeaves: ctx.independentLeaves,
layoutVersion: LAYOUT_VERSION,
packageManager: `${opts.packageManager.name}@${opts.packageManager.version}`,
pendingBuilds: ctx.pendingBuilds,
registries: ctx.registries,
shamefullyHoist: ctx.shamefullyHoist,
skipped: Array.from(ctx.skipped),
store: ctx.storeDir,
virtualStoreDir: ctx.virtualStoreDir,
})
})(),
])
}
summaryLogger.debug({ prefix: opts.lockfileDir })
await opts.storeController.close()
return importersToLink.map(({ manifest, rootDir }) => ({ rootDir, manifest }))
}
newPkg = opts.manifest
}
const lockfileOpts = { forceSharedFormat: opts.forceSharedLockfile }
if (opts.useLockfile) {
await writeLockfiles({
currentLockfile: updatedCurrentLockfile,
currentLockfileDir: ctx.virtualStoreDir,
wantedLockfile: updatedWantedLockfile,
wantedLockfileDir: ctx.lockfileDir,
...lockfileOpts,
})
} else {
await writeCurrentLockfile(ctx.virtualStoreDir, updatedCurrentLockfile, lockfileOpts)
}
summaryLogger.debug({ prefix: opts.dir })
if (reporter) {
streamParser.removeListener('data', reporter)
}
return newPkg
}
[ctx.importerId]: {
hoistedAliases: ctx.hoistedAliases,
shamefullyFlatten: opts.shamefullyFlatten,
},
},
included: ctx.include,
independentLeaves: opts.independentLeaves,
layoutVersion: LAYOUT_VERSION,
packageManager: `${opts.packageManager.name}@${opts.packageManager.version}`,
pendingBuilds: ctx.pendingBuilds,
registries: ctx.registries,
skipped: Array.from(ctx.skipped).filter((pkgId) => !removedPkgIds.has(pkgId)),
store: ctx.storePath,
})
summaryLogger.debug({ prefix: opts.prefix })
return pkg
}