npx ts-index-compiler [options]
Auto-generate an index.ts file from typescript source files - build your libraries with freedom!
- -o --out <
filepath
> Output file to be generated (default:./src/index.ts
) - -p --path <
path
> Path to recursively examine for outputs (default:./src
)
• base: "." = "."
Defined in index.ts:4
Defined in make-index.ts:5
• out: string
Defined in make-index.ts:77
• x: [string[], string[]][] = getExports(".")
Defined in make-index.ts:78
▸ 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(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