Crate js_workspace_tools

Source

Modules§

implementations
package
pnpm
workspace_manager
yarn

Structs§

PackageInfo
Parsed package.json
PackageJsonMetadata
WorkspaceItem
Workspaces is a generic term that refers to the set of features in the npm cli that provides support to managing multiple packages from your local files system from within a singular top-level, root package.

Enums§

WorkspaceManager

Functions§

find_git_root
find_package_root
find_workspace_path
get_all_package_json_files
Get paths to every package.json in workspaces, given a cwd
get_change_path
get_dependent_map
HashMap<PackageName, HashSet<Package’s dependcies/devDependcies>>
get_internal_deps
Get deps of target package included in giving packages.
get_package_graph
edges of dependency/devDependency => package
get_package_infos
Get every Parsed package.json in workspaces, given a cwd
get_pnpm_workspace_root
get_pnpm_wrokspaces
get_scoped_packages
Searches all package names based on “scoping” (i.e. “scope” in the sense of inclusion)
get_transitive_consumers
for a package graph of a->b->c (where b depends on a), transitive consumers of a are b & c and their consumers (or what are the consequences of a)
get_transitive_consumers_with_scope
for a package graph of a->b->c (where b depends on a), transitive consumers of a are b & c and their consumers (or what are the consequences of a)
get_transitive_providers
for a package graph of a->b->c (where b depends on a), transitive providers of c are a & b and their providers (or what is needed to satisfy c)
get_workspace_implementation
get_workspace_infos
get_workspace_root
get_workspaces
is_child_of
search_package_json_files
search_up
Starting from cwd, searches up the directory hierarchy for pathName

Type Aliases§

PackageInfos
WorkspaceInfo