@dougkulak/libdefkit
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @dougkulak/libdefkit

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

32.5 kB

Total Files

24

Last publish

Collaborators

  • dougkulak