@amirsavand/ts-barrel

CLI tool to generate barrel files for TypeScript projects.

npm

Changelog

Installation

npm install --save-dev @amirsavand/ts-barrel

Usage

You can execute it in the terminal or import the module.

CLI

Script

import { generateBarrelFiles } from '@amirsavand/ts-barrel';

// Start generating barrel files.
// Start from the "src/" directory.
// Ignore "foo/" and "bar/" directories.
generateBarrelFiles({
  // List of folders to process.
  root: ['src'],
  // List of folders to ignore from process (their
  // children are not ignored).
  ignore: ['foo', 'bar'],
});

Built With

About

Made with 💖 by Savand Bros © 2023-present.