Package Exports
- @yarn-tool/resolve-package
- @yarn-tool/resolve-package/index.js
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 (@yarn-tool/resolve-package) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
README.md
resolve package root and package.json paths , work on node 17 too
install
yarn add @yarn-tool/resolve-package
yarn-tool add @yarn-tool/resolve-package
yt add @yarn-tool/resolve-package
import { resolvePackageJsonLocation } from '@yarn-tool/resolve-package'
console.dir(resolvePackageJsonLocation('tslib'));