Skip to content

mscolnick/export-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6a2be1b · May 16, 2024

History

61 Commits
Aug 24, 2021
Aug 5, 2021
Sep 19, 2020
Aug 20, 2021
Sep 19, 2020
Sep 19, 2020
Sep 19, 2020
Aug 5, 2021
Aug 5, 2021
Sep 19, 2020
Jun 10, 2018
Aug 24, 2021
Sep 18, 2020
Sep 22, 2020
Aug 24, 2021
May 16, 2024
Sep 19, 2020
Sep 19, 2020
Jul 29, 2021

Repository files navigation

export-typescript

Functions

  1. Automatically export typescript files when newly creating an index.ts file.
  2. While in an index.ts file, run this extension ("Export Typescript: Write exports") to add export * from ./<FILE_OR_FOLDER> for each sibling file/folder in the current directory.
  3. Explicitly export declarations like export { Foo, Bar } from ./<FILE> by setting exportStar=false in the config.

Config

The default configuration exports all sibling .ts files and folders with a index.ts file.

    "export-typescript.excludes":["*.{spec.ts,spec.tsx}"],
    "export-typescript.includes":["*.{ts,tsx}", "*/index.{ts,tsx}"],
    "export-typescript.exportStar": true

In order to export declarations and look for files in subdirectories recursively, put the following in your .vscode/settings.json:

    "export-typescript.excludes":["**/*.{spec.ts,spec.tsx}"],
    "export-typescript.includes":["**/*.{ts,tsx}"],
    "export-typescript.exportStar": false

Changelog

CHANGELOG.md