How to use the @instructure/pkg-utils.readPackage function in @instructure/pkg-utils

To help you get started, we’ve selected a few @instructure/pkg-utils 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 instructure / instructure-ui / packages / eslint-plugin-instructure-ui / lib / rules / no-relative-package-imports.js View on Github external
function findNamedPackage (filePath) {
      const found = readPackage({cwd: filePath})
      // console.log(found)
      if (found.package && !found.package.name) {
        return findNamedPackage(path.join(found.path, '../..'))
      }
      return found
    }

@instructure/pkg-utils

Utilities for managing node packages in a monorepo.

MIT
Latest version published 4 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages