How to use the @pnpm/types.DEPENDENCIES_FIELDS.find function in @pnpm/types

To help you get started, we’ve selected a few @pnpm/types 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 / supi / src / save.ts View on Github external
export function guessDependencyType (alias: string, manifest: ImporterManifest): DependenciesField | undefined {
  return DEPENDENCIES_FIELDS
    .find((depField) => Boolean(manifest[depField]?.[alias]))
}

@pnpm/types

Basic types used by pnpm

MIT
Latest version published 21 days ago

Package Health Score

72 / 100
Full package analysis