facebookarchive/prepack

Include .flow files in the distributable package

Offen

#545 geöffnet am 04.05.2017

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (520 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (14.268 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I'd like to able to import the Options type, e.g.

import type {
  Options
} from 'prepack/lib/options.js.flow'

This is to enable type-hinting in https://github.com/gajus/prepack-webpack-plugin.

The current build strips types, or at least I don't see a way to import them.

The way I distribute my packages is using flow-copy-source, e.g. https://github.com/gajus/prepack-webpack-plugin/commit/69c3464816c1a524880473dd7999dda7f9915413

Contributor Guide