mirror of
https://github.com/status-im/metro.git
synced 2025-01-22 17:08:57 +00:00
Ship flow types with the bundle.
This commit is contained in:
parent
bbdc4b8152
commit
574b427c7c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"lerna": "2.0.0-beta.38",
|
||||
"version": "0.7.1",
|
||||
"version": "0.7.3",
|
||||
"npmClient": "yarn",
|
||||
"packages": [
|
||||
"packages/*"
|
||||
|
@ -125,6 +125,9 @@ function buildFileFor(file, silent, env) {
|
||||
} else {
|
||||
const transformed = babel.transformFileSync(file, babelOptions).code;
|
||||
fs.writeFileSync(destPath, transformed);
|
||||
if (/\@flow/.test(fs.readFileSync(file))) {
|
||||
fs.createReadStream(file).pipe(fs.createWriteStream(destPath + '.flow'));
|
||||
}
|
||||
silent ||
|
||||
process.stdout.write(
|
||||
chalk.green(' \u2022 ') +
|
||||
|
Loading…
x
Reference in New Issue
Block a user