Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

GongT/export-all-in-one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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_once_index.ts (place next to tsconfig.json)

  4. (You can) Setup rollup _export_all_in_once_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

About

write a library in typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published