vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
    • Overview
    • index
    • read-project-folders
    • Reference
  • Type Aliases
  • ProjectFolderOptions
  • Functions
  • readProjectFolders()
  1. Client
  2. /
  3. API Reference
  4. /
  5. @vltpkg/project
  6. /
  7. read-project-folders

read-project-folders

Type Aliases

ProjectFolderOptions

TypeScript
type ProjectFolderOptions = object;

Defined in: read-project-folders.ts:17

Type declaration

NameTypeDescription
path?stringThe standard path to read from, defaults to the user's home directory.
scurryPathScurryA PathScurry object, for use in globs.
userDefinedProjectPathsstring[]A list of user defined project paths set in the configuration file.

Functions

readProjectFolders()

TypeScript
function readProjectFolders(__namedParameters, maxDepth): Promise<PathBase[]>

Defined in: read-project-folders.ts:41

Retrieves folders from a given directory, if that directory is recognized to be the current cli project root folder then we proceed to read its siblings.

Traverses nested directory recursively until project folders can be find, always stopping at the first level where a package.json is present.

Parameters

ParameterTypeDefault value
__namedParametersProjectFolderOptionsundefined
maxDepthnumber7

Returns

Promise<PathBase[]>


PreviousindexNextReference

On this page

  • Type Aliases
  • ProjectFolderOptions
  • Functions
  • readProjectFolders()

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now