Skip to content

rhdeck/ts-index-compiler

Repository files navigation

Usage

npx ts-index-compiler [options]

Auto-generate an index.ts file from typescript source files - build your libraries with freedom!

Options

  • -o --out <filepath> Output file to be generated (default: ./src/index.ts)
  • -p --path <path> Path to recursively examine for outputs (default: ./src)

ts-index-compiler - v1.0.0

Index

Variables

Functions

Variables

Const base

base: "." = "."

Defined in index.ts:4

Defined in make-index.ts:5


out

out: string

Defined in make-index.ts:77


Const x

x: [string[], string[]][] = getExports(".")

Defined in make-index.ts:78

Functions

getExports

getExports(base: string, context: string): [string[], string[]][]

Defined in index.ts:5

Parameters:

Name Type Default
base string "."
context string join(process.cwd(), "src")

Returns: [string[], string[]][]


makeIndex

makeIndex(exports: [string[], string[]][], indexPath: string): void

Defined in index.ts:53

Parameters:

Name Type Default
exports [string[], string[]][] -
indexPath string "./src/index.ts"

Returns: void

About

Compile an index file for a typescript library automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published