azu / monorepo-utils

A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

⚠️ 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:

About

A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..


Languages

Language:TypeScript 88.5%Language:JavaScript 10.6%Language:Handlebars 0.8%Language:Shell 0.1%