
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
discover-workspaces
Advanced tools
Scan a mono-repo to discover all the projects in that mono-repo.
Import the utility...
import { discoverWorkspaces, PackageDetails, DependencyIdentifier, PackageTypes } from "discover-workspaces";
or
import { workspaceDiscovery, PackageDetails, DependencyIdentifier, PackageTypes } from "discover-workspaces";
const logger = { error: console.error };
const discoverWorkspaces = workspaceDiscovery({ logger: console });
Usage...
const cwd = "./path-to-mono-repo";
const result: PackageDetails[] = discoverWorkspaces({ cwd });
Definition of PackageDetails
:
{
identifier: DependencyIdentifier,
dependencies: DependencyIdentifier[];
devDependencies: DependencyIdentifier[];
peerDependencies: DependencyIdentifier[];
scripts: string[]; //Names of each script
directory: string; //Full path of the project
packageJson: any; // Full JSON of the package.json
}
Definition of DependencyIdentifier
:
{
name: string,
version: string,
type: PackageTypes.WorkspaceRootPackage | PackageTypes.WorkspacePackage | PackageTypes.ExternalPackage,
},
FAQs
Run a script on the packages in a mono-repo.
The npm package discover-workspaces receives a total of 0 weekly downloads. As such, discover-workspaces popularity was classified as not popular.
We found that discover-workspaces demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.