From 5394b64376ee584b75840ade2f483d4b944eff18 Mon Sep 17 00:00:00 2001 From: Maxim Malov Date: Tue, 28 Apr 2020 15:13:00 +0600 Subject: [PATCH] fix: flow libdefs naming --- package-scripts.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package-scripts.js b/package-scripts.js index 0e6b597..0dd4285 100644 --- a/package-scripts.js +++ b/package-scripts.js @@ -57,7 +57,15 @@ module.exports = { description: 'Generates table of contents in README', script: 'doctoc README.md' }, - copyTypes: npsUtils.copy('src/*.js.flow src/*.d.ts dist'), + copyTypes: series( + npsUtils.copy('src/*.js.flow src/*.d.ts dist'), + npsUtils.copy( + 'dist/index.js.flow dist --rename="final-form-arrays.cjs.js.flow"' + ), + npsUtils.copy( + 'dist/index.js.flow dist --rename="final-form-arrays.es.js.flow"' + ) + ), lint: { description: 'lint the entire project', script: 'eslint .'