How to use the @pnpm/symlink-dependency function in @pnpm/symlink-dependency

To help you get started, we’ve selected a few @pnpm/symlink-dependency examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pnpm / pnpm / packages / hoist / src / index.ts View on Github external
await Promise.all(pkgAliases.map(async (pkgAlias) => {
          await symlinkDependency(depNode.location, opts.modulesDir, pkgAlias)
        }))
      }
github pnpm / pnpm / packages / supi / src / install / link.ts View on Github external
.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,
          })
        }),
github pnpm / pnpm / packages / supi / src / install / link.ts View on Github external
              await limitLinking(() => symlinkDependency(pkg.peripheralLocation, modules, childAlias))
            }),

@pnpm/symlink-dependency

Symlink a dependency to node_modules

MIT
Latest version published 24 days ago

Package Health Score

63 / 100
Full package analysis