1.0.1 • Published 3 years ago

@dougkulak/libdefkit v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@dougkulak/libdefkit

Util toolset to produce single-file TS and Flow libdefs

Requirements

Node.js >= 14

Install

yarn add @dougkulak/libdefkit -D

Usage

Insert script to package.json

{
  "scripts": {
    "build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json"
  }
}

CLI

FlagDescriptionDefault
--helpDisplay usage hints
--cwdSet current working dirprocess.cwd()
--entryDefine pkg entry point<pkgName>/target/es5
--tsconfigDefine path(s) to project's TS config
--customTypingsAttach custom libdefs to d.ts bundle
--dtsOutTS typings outputtypings/index.d.ts
--flowOutFlow libdef outputflow-typed/index.flow.js

License

MIT