3.0.7 • Published 4 years ago

@idlebox/export-all-in-one v3.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

export-all-in-one

yarn global add @gongt/export-all-in-one
## or
npm -g install @gongt/export-all-in-one
export-all-in-one ./path/to/tsconfig.json
  1. Resolve ALL files from given tsconfig.json
  2. Collect ALL exported thing from these files
  3. Join ALL of them into a single _export_all_in_one_index.ts (place next to tsconfig.json)
  4. (You can) Setup rollup _export_all_in_one_index.ts as entry

  5. BOOM, everything exported. everyone can import {anything, they, want} from '@your/package'.

PS: Of course, all your file can not export two same named symbol....
But you have no reason to do that, except you want to fool your IDE.

PS2: default export is exported as it's file name. (unstable)

PS3: Remember to use /** @internal */ :D