2.0.1 • Published 5 years ago

plugin-build-flowgen v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

plugin-build-flowgen

A @pika/pack build plugin. Adds Flow type definitions generated from TypeScript definitions.

Install

# npm:
npm install plugin-build-flowgen --save-dev
# yarn:
yarn add plugin-build-flowgen --dev

Usage

{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      /* Generates the TypeScript definition files: */
      ["@pika/plugin-ts-standard-pkg"]
      /* Generates the Flow definition files: */
      ["@pika/plugin-build-flowgen"]
    ]
  }
}

Result

Generate a corresponding *.js.flow file inside the dist-node directory for every *.d.ts file inside the dist-types directory.