mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 01:51:41 -04:00
9 lines
247 B
TypeScript
9 lines
247 B
TypeScript
import path from 'path'
|
|
import exists from 'path-exists'
|
|
|
|
export async function existsInDir (entityName: string, dir: string) {
|
|
const entityPath = path.join(dir, entityName)
|
|
if (await exists(entityPath)) return entityPath
|
|
return undefined
|
|
}
|