react-router-navigation-prompt
Advanced tools
Comparing version 1.8.8 to 1.8.9
@@ -7,2 +7,6 @@ # Changelog | ||
## [1.8.9] - 2019-10-03 | ||
### Changed | ||
- Made Flow easier to consume | ||
## [1.8.8] - 2019-09-28 | ||
@@ -9,0 +13,0 @@ ### Changed |
{ | ||
"name": "react-router-navigation-prompt", | ||
"version": "1.8.8", | ||
"version": "1.8.9", | ||
"description": "A replacement component for the react-router `<Prompt/>`. Allows for more flexible dialogs.", | ||
@@ -54,2 +54,3 @@ "scripts": { | ||
"concurrently": "^3.5.1", | ||
"copy-webpack-plugin": "^4.6.0", | ||
"eslint": "^4.19.1", | ||
@@ -56,0 +57,0 @@ "eslint-config-google": "^0.9.1", |
const path = require('path'); | ||
const CopyPlugin = require('copy-webpack-plugin'); | ||
@@ -10,2 +11,13 @@ module.exports = { | ||
}, | ||
plugins: [ | ||
new CopyPlugin([ | ||
// copy the main source file to the `es/index.js.flow` to add | ||
// a way to consume flow types for the end users | ||
{ | ||
from: 'src/index.js', | ||
to: 'index.js.flow', | ||
toType: 'file' | ||
} | ||
]), | ||
], | ||
module: { | ||
@@ -12,0 +24,0 @@ rules: [ |
Sorry, the diff of this file is not supported yet
477646
42
6057
27