/monorepo-utils

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

Primary LanguageTypeScript

monorepo-utils Actions Status: test

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

Packages

Collect package file path in the monorepo.

Supports following package manager's workspaces.

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

This tool convert 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 get change from each package's CHANGELOG.md. It help to collect changelog in lerna's Independent mode.

Deprecated Packages

@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

Following command release changed packaged and created release note to Releases.

$ GH_TOKEN="${YOUR_GITHUB_TOKEN}" npm run versionup -- --create-release=github && npm run release --yes