'use strict';constpath=require('path');constfindUp=require('find-up');constpkgDir=asynccwd=>{constfilePath=awaitfindUp('package.json',{cwd});returnfilePath&&path.dirname(filePath);};module.exports=pkgDir;// TODO: Remove this for the next major releasemodule.exports.default=pkgDir;module.exports.sync=cwd=>{constfilePath=findUp.sync('package.json',{cwd});returnfilePath&&path.dirname(filePath);};