Package Exports
- @pnpm/read-package-json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pnpm/read-package-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@pnpm/read-package-json
Read a package.json
Installation
npm i -S @pnpm/read-package-jsonUsage
import readPackageJson from '@pnpm/read-package-json'
const pkgJson = await readPackageJson('package.json')API
default: readPackageJson(path): Promise<PackageJson>
Arguments
path- String - path to thepackage.json
fromDir(path): Promise<PackageJson>
Arguments
path- String - path to the directory with thepackage.json