import { Project } from "../project" ; export type Aliases = { [ key ] : string ; } ; export function getAliases ( project ) { let aliases = { } ; project . packages . forEach ( ( pkg ) => { pkg . entrypoints . forEach ( ( entrypoint ) => { aliases [ entrypoint . name ] = entrypoint . source ; } ) ; } ) ; return aliases ; }