@dougkulak/libdefkit
v1.0.1
Published
Util toolset to produce single-file TS and Flow libdefs
Downloads
44
Readme
@dougkulak/libdefkit
Util toolset to produce single-file TS and Flow libdefs
Requirements
Node.js >= 14
Install
yarn add @dougkulak/libdefkit -DUsage
Insert script to package.json
{
"scripts": {
"build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json"
}
}CLI
|Flag | Description | Default
|---|---|---
|--help | Display usage hints
|--cwd | Set current working dir | process.cwd()
|--entry | Define pkg entry point | <pkgName>/target/es5
|--tsconfig | Define path(s) to project's TS config
|--customTypings | Attach custom libdefs to d.ts bundle
|--dtsOut | TS typings output | typings/index.d.ts
|--flowOut | Flow libdef output | flow-typed/index.flow.js
