export-directory
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

export-directory

This is a tool that manages index.js files within your project that re-export all the other files in the same directory, like:

// export-directory
export * from './file1';
export * from './file2';
export * from './file3';
export * from './types';

It's efficient (runs in under a quarter of a second), configurable, supports watch mode, and also contains as a rollup/vite plugin.

npm i -D export-directory

The CLI can be ran efficiently.

export-directory [root="./"] [options]

Usage as a Rollup/Vite plugin

import exportDirectory from 'export-directory/rollup';

export default {
  ...
  plugins: [
    exportDirectory(),
  ],
};

Readme

Keywords

none

Package Sidebar

Install

npm i export-directory

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

12.3 kB

Total Files

10

Last publish

Collaborators

  • davecaruso