A @pika/pack build plugin. Adds Flow type definitions generated from TypeScript definitions.
# npm:
npm install plugin-build-flowgen --save-dev
# yarn:
yarn add plugin-build-flowgen --dev
{
"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"]
]
}
}
Generate a corresponding *.js.flow
file for every *.d.ts
file inside the dist-types
directory.