PackageLayout

Where packages live inside a project: <project>/@<scope>/<name>/.

Functions

Link copied to clipboard
fun directoryOf(projectRoot: FsEntry, identifier: PackageIdentifier): FsEntry
Link copied to clipboard
fun isPackagePath(projectRoot: FsEntry, entry: FsEntry): Boolean

Tells whether entry belongs to an installed package, i.e. lies under a top-level @<scope>/ directory of projectRoot.

Link copied to clipboard
fun manifestOf(directory: FsEntry): FsEntry