monorepo

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package monorepo detects monorepo/workspace boundaries and reports the repo type along with resolved workspace paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Type       string   `json:"type"`       // "monorepo" or "single"
	Tool       string   `json:"tool"`       // e.g. "pnpm", "npm", "yarn", "go-work", "turbo", "nx", "lerna", "cargo", "convention"
	Workspaces []string `json:"workspaces"` // relative paths to workspace roots
}

Result holds the detection output for a given root directory.

func Detect

func Detect(root string) (*Result, error)

Detect inspects root and returns a Result describing the repo layout. Detection runs in priority order; the first match wins.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL