plugin-build-flowgen

2.0.1 • Public • Published

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.

/plugin-build-flowgen/

    Package Sidebar

    Install

    npm i plugin-build-flowgen

    Weekly Downloads

    1

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    4.97 kB

    Total Files

    7

    Last publish

    Collaborators

    • chasingmaxwell