Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
await Promise.all(pkgAliases.map(async (pkgAlias) => {
await symlinkDependency(depNode.location, opts.modulesDir, pkgAlias)
}))
}
.map(async ({ rootAlias, depGraphNode }) => {
if (
!opts.dryRun &&
(await symlinkDependency(depGraphNode.peripheralLocation, modulesDir, rootAlias)).reused
) return
const isDev = manifest.devDependencies?.[depGraphNode.name]
const isOptional = manifest.optionalDependencies?.[depGraphNode.name]
rootLogger.debug({
added: {
dependencyType: isDev && 'dev' || isOptional && 'optional' || 'prod',
id: depGraphNode.packageId,
latest: opts.outdatedDependencies[depGraphNode.packageId],
name: rootAlias,
realName: depGraphNode.name,
version: depGraphNode.version,
},
prefix: rootDir,
})
}),
await limitLinking(() => symlinkDependency(pkg.peripheralLocation, modules, childAlias))
}),