export-indexer
v1.0.5
Published
This library is a library that automatically generates an index file.
Readme
export-indexer
This library is a library that automatically generates an index file.
How to run
npx export-indexerInstall
npm
npm install -D export-indexeryarn
yarn add -D export-indexerUsage
Create a .index file where you want the index file to be generated.
Example
If the directory structure is as follows
└ components
├ .index
└ test.tsxDo the following in terminal:
npx export-indexerIf you want to detect changes:
npx export-indexer --watchThen, the following contents will be output.
index.ts
export * from './text';file
└ components
├ .index
├ index.ts
└ test.tsx