lib/config-builder.js
function isInsideDir(dir, targetDir) {
  if (targetDir == dir) return false
  if (targetDir == '.') return dir
  const relative = path.relative(targetDir, dir)
  if (/^\.\./.test(relative)) return false
  return relative
}
function isInsideDir(dir, targetDir) {
  if (targetDir == dir) return false
  if (targetDir == '.') return dir
  const relative = path.relative(targetDir, dir)
  if (/^\.\./.test(relative)) return false
  return relative
}
function isInsideDir ( dir , targetDir ) { if ( targetDir == dir ) return false if ( targetDir == '.' ) return dir const relative = path . relative ( targetDir , dir ) if ( / ^\.\. / . test ( relative ) ) return false return relative }
If dir is inside targetDir, return the relative path
If else, return false
If dir is inside targetDir return the relative path If else return false