ts-index-compiler

npx ts-index-compiler [options]

Usage no npm install needed!

<script type="module">
  import tsIndexCompiler from 'https://cdn.skypack.dev/ts-index-compiler';
</script>

README

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.1.2

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:86


Const x

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

Defined in make-index.ts:87

Functions

getExports

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

Defined in index.ts:5

Parameters:

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

Returns: [][]


makeIndex

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

Defined in index.ts:53

Parameters:

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

Returns: void