@wroud/ts-project-linker

0.2.0 • Public • Published

@wroud/ts-project-linker

NPM version

@wroud/ts-project-linker is a CLI tool that helps synchronize TypeScript's project references with package dependencies. It supports sub-configurations such as tsconfig.*.json and provides commands for linking project references.

Features

  • Sync Project References: Automatically sync your TypeScript project references with package dependencies.
  • Supports Sub Configs: Handles multiple TypeScript configuration files like tsconfig.*.json.
  • CLI Tool: Simple command-line interface for ease of use.

Installation

Install via npm:

npm install @wroud/ts-project-linker

Install via yarn:

yarn add @wroud/ts-project-linker

Usage

ts-link [paths..]

Commands:

  • ts-link glob [patterns..]: Provide a single glob pattern for tsconfig.json locations.
  • ts-link link [paths..]: Link TypeScript project references (default command).

Options:

  • --immutable: Do not modify the tsconfig.json files, will exit with 1 if changes are needed.
  • --verbose: Print verbose output.

Example

ts-link ./packages/\*

This will link all TypeScript project references found in the ./packages/ directory.

Documentation

For more information and detailed documentation, visit the documentation site.

Changelog

All notable changes to this project will be documented in the CHANGELOG file.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Package Sidebar

Install

npm i @wroud/ts-project-linker

Homepage

wroud.dev/

Weekly Downloads

8

Version

0.2.0

License

MIT

Unpacked Size

33.3 kB

Total Files

25

Last publish

Collaborators

  • wroud