diff --git a/package.json b/package.json index 9173d88..3b7b68b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-router-breadcrumbs-hoc", - "version": "3.2.8", + "version": "3.2.9", "description": "small, flexible, higher order component for rendering breadcrumbs with react-router 4.x", "repository": "icd2k3/react-router-breadcrumbs-hoc", "main": "dist/cjs/index.js", @@ -44,7 +44,6 @@ "@types/react": "^16.9.23", "@types/react-dom": "^16.9.5", "@types/react-router": "^5.1.4", - "@types/react-router-dom": "^5.1.3", "@typescript-eslint/eslint-plugin": "^2.24.0", "@typescript-eslint/parser": "^2.24.0", "babel-eslint": "^10.1.0", diff --git a/rollup.config.js b/rollup.config.js index ede7c87..9b8ad1f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,7 +20,7 @@ const plugins = [ }), ]; -const exports = [ +const formats = [ { format: 'cjs', file: pkg.main, plugins: plugins.concat([commonjs(), uglify()]) }, { format: 'umd', file: pkg.umd, plugins: plugins.concat([commonjs(), uglify()]) }, { format: 'es', file: pkg.module, plugins }, @@ -29,10 +29,9 @@ const exports = [ const globals = { react: 'React', 'react-router': 'ReactRouter', - 'react-router-dom': 'reactRouterDom', }; -export default exports.map((item) => ({ +export default formats.map((item) => ({ input: 'src/index.tsx', plugins: item.plugins, external, diff --git a/yarn.lock b/yarn.lock index a6ce83b..b261b0c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1304,16 +1304,7 @@ dependencies: "@types/react" "*" -"@types/react-router-dom@^5.1.3": - version "5.1.3" - resolved "https://registry.yarnpkg.com/@types/react-router-dom/-/react-router-dom-5.1.3.tgz#b5d28e7850bd274d944c0fbbe5d57e6b30d71196" - integrity sha512-pCq7AkOvjE65jkGS5fQwQhvUp4+4PVD9g39gXLZViP2UqFiFzsEpB3PKf0O6mdbKsewSK8N14/eegisa/0CwnA== - dependencies: - "@types/history" "*" - "@types/react" "*" - "@types/react-router" "*" - -"@types/react-router@*", "@types/react-router@^5.1.4": +"@types/react-router@^5.1.4": version "5.1.4" resolved "https://registry.yarnpkg.com/@types/react-router/-/react-router-5.1.4.tgz#7d70bd905543cb6bcbdcc6bd98902332054f31a6" integrity sha512-PZtnBuyfL07sqCJvGg3z+0+kt6fobc/xmle08jBiezLS8FrmGeiGkJnuxL/8Zgy9L83ypUhniV5atZn/L8n9MQ==