Skip to content

Commit

Permalink
chore: remove react-router-dom types & rollup global (#104)
Browse files Browse the repository at this point in the history
* fix: remove react-router-dom types & rollup global

* chore: cleanup and bump version

Co-authored-by: Justin Schrader <[email protected]>
  • Loading branch information
icd2k3 and jschrader-nr authored Apr 2, 2020
1 parent eb243cc commit a44fda6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -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,
Expand Down
11 changes: 1 addition & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down

0 comments on commit a44fda6

Please sign in to comment.