diff --git a/lerna.json b/lerna.json index df22c511..2ed497d0 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "lerna": "2.0.0-beta.38", - "version": "0.7.1", + "version": "0.7.3", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/scripts/build.js b/scripts/build.js index 73f9c083..16455b23 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -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 ') +