Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 815 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 815 Bytes

[auto-sync-export]

NPM version

usage

when save document in a.{ts,js,jsx,tsx}, find export and copy to ./index.{ts,js,jsx,tsx}.

let's say we have file named a.ts

// a.ts
const foo = 1;
const bar = 2;
export default foo;
export { bar };

./index.{ts,js,jsx,tsx} will change synchronously.

export { default as foo } from './a';
export { bar } from './a';

supported list

  • .jsx .tsx .jx .ts extensions
  • named exports only

TODO LIST

  • test case for parser
  • more strict logic for adding export to index.{ts,js,jsx,tsx}
  • chore

License

MIT License © 2022 ShaolinWang