MCPcopy Index your code
hub / github.com/azu/monorepo-utils

github.com/azu/monorepo-utils @v2.11.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.11.0 ↗ · + Follow
46 symbols 119 edges 31 files 0 documented · 0% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

monorepo-utils Actions Status: test

This repository is utilities for monorepo. Also, this repository is a monorepo.

Packages

@monorepo-utils/package-utils

Collect package file path in the monorepo.

Supports following package manager's workspaces.

  • Lerna(lerna.json)
  • Yarn's workspaces
  • npm v7+'s workspaces

@monorepo-utils/workspaces-to-typescript-project-references

This tool converts lerna/npm workspaces/yarn workspaces to TypeScript's Project References.

You can keep package dependencies synchronized between lerna/npm/yarn workspaces and TypeScript.

@monorepo-utils/collect-changelog

@monorepo-utils/collect-changelog get change from each package's CHANGELOG.md. It help to collect changelog in lerna's Independent mode.

@monorepo-utils/get-workspaces-cli

@monorepo-utils/get-workspaces-cli is a simple CLI for getting workspace list. It allows get file path of packages.

$ npx @monorepo-utils/get-workspaces-cli

Deprecated Packages

Deprecated @monorepo-utils/publish

@monorepo-utils/publish help npm publish.

This script split lerna publish(lerna 2) into versioning and publishing.

:warning: Notes:

lerna 3 support lerna version and lerna publish. You should use lerna 3 directly.

Release Flow

  1. Create Release PR via dispatching "Create Release" action
  2. Review and Merge release PR
  3. Published

See also:

Extension points exported contracts — how you extend this code

CclogObject (Interface)
(no doc)
packages/@monorepo-utils/collect-changelog/src/collect-changelog-from-tag.ts
ChangesByVersion (Interface)
(no doc)
packages/@monorepo-utils/collect-changelog/src/collect-changelog-from-tag.ts
PackageMeta (Interface)
(no doc)
packages/@monorepo-utils/collect-changelog/src/collect-changelog-from-tag.ts
ChangLogResult (Interface)
(no doc)
packages/@monorepo-utils/collect-changelog/src/collect-changelog-from-tag.ts
ExecuteOptions (Interface)
(no doc)
packages/@monorepo-utils/collect-changelog/src/cli.ts

Core symbols most depended-on inside this repo

toProjectReferences
called by 11
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/index.ts
getPackages
called by 9
packages/@monorepo-utils/package-utils/src/get-packages.ts
execute
called by 5
packages/@monorepo-utils/collect-changelog/src/cli.ts
sortReferences
called by 4
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/index.ts
toRootProjectReferences
called by 4
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/index.ts
findPackages
called by 4
packages/@monorepo-utils/package-utils/src/get-packages.ts
relativeName
called by 3
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/index.ts
filterEmpty
called by 3
packages/@monorepo-utils/collect-changelog/src/collect-changelog-from-tag.ts

Shape

Function 40
Interface 6

Languages

TypeScript100%

Modules by API surface

packages/@monorepo-utils/collect-changelog/src/collect-changelog-from-tag.ts12 symbols
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/index.ts7 symbols
archives/publish/src/utils/utils.ts7 symbols
packages/@monorepo-utils/package-utils/src/get-packages.ts6 symbols
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/manager/workspaces.ts5 symbols
packages/@monorepo-utils/workspaces-to-typescript-project-references/src/cli.ts2 symbols
packages/@monorepo-utils/collect-changelog/src/cli.ts2 symbols
archives/publish/src/utils/async-utils.ts2 symbols
packages/@monorepo-utils/workspaces-to-typescript-project-references/test/index.test.ts1 symbols
archives/publish/src/publish.ts1 symbols
archives/publish/src/cli.ts1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add monorepo-utils \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact